I have one screen with 2 buttons(Async, Sync), some labels, and 1 texbox.
My async button function do 3 steps, doasync1,2 and 3. each step have one sleep at 2 seconds, and after fill one label 'task 1 complete,2,3' etc.
In my logic, when i will press the Async button, the user should continue do what he wants, without any problem, but i face one problem.
For example, if he wants to fill some textbox on this screen, while the async request still running, my textbox will lost focus in every time that async function fill a label with task completed.
How can i solve that? if is not possible, that is a better way to do that?
That was my first idea, but after i tought, if the user wants to fill some form, with a lot of fields, he doesnt get, for example, his name is "Teste ada tes ago", he will wrote teste, and lost focus, write ada, and lost focus, thats is not viable.
norkk
Member
29 Points
30 Posts
Problem with update panel!
Feb 29, 2012 11:41 AM|LINK
I have one screen with 2 buttons(Async, Sync), some labels, and 1 texbox.
My async button function do 3 steps, doasync1,2 and 3. each step have one sleep at 2 seconds, and after fill one label 'task 1 complete,2,3' etc.
In my logic, when i will press the Async button, the user should continue do what he wants, without any problem, but i face one problem.
For example, if he wants to fill some textbox on this screen, while the async request still running, my textbox will lost focus in every time that async function fill a label with task completed.
How can i solve that? if is not possible, that is a better way to do that?
Sum8
Contributor
4141 Points
931 Posts
Re: Problem with update panel!
Feb 29, 2012 11:50 AM|LINK
Try setting focus again on the TextBox after async function fills the label.
Sumit Pathak
------------------
ThisPost = Helped == True ? "Mark As Answer" : "Elaborate your problem in more details"
norkk
Member
29 Points
30 Posts
Re: Problem with update panel!
Feb 29, 2012 11:56 AM|LINK
That was my first idea, but after i tought, if the user wants to fill some form, with a lot of fields, he doesnt get, for example, his name is "Teste ada tes ago", he will wrote teste, and lost focus, write ada, and lost focus, thats is not viable.
chetan.sarod...
All-Star
66619 Points
11270 Posts
Re: Problem with update panel!
Mar 01, 2012 02:19 AM|LINK
Hi, Please refer this
http://vincexu.blogspot.in/2009/06/keep-textbox-focus-inside-updatepanel.html
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.