Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 09, 2012 12:37 PM by ajafik
0 Points
1 Post
Dec 01, 2012 07:45 AM|LINK
I have gridview control which contains the text box control.
For every 5 minutes i am forcefully calling the save method by using the timer control. (Tick event)
It is saving data , but losing the textbox focus (which is under the grid view).
Help me on this to put the focus back to the control (where the control had lost the focus)
Thanks in advance!
All-Star
30955 Points
6336 Posts
Dec 01, 2012 08:17 AM|LINK
try this
http://www.codeproject.com/Articles/17571/Maintain-focus-between-postbacks-in-ASP-NET-2-0-al
Member
88 Points
35 Posts
Dec 09, 2012 12:37 PM|LINK
Call the Focus() method of the textbox at the click event handler of the timer you are using for the update.
Hope this helps?
Sreenivas Th...
0 Points
1 Post
Losing textbox focus which is under the Gridview after the postback happen
Dec 01, 2012 07:45 AM|LINK
I have gridview control which contains the text box control.
For every 5 minutes i am forcefully calling the save method by using the timer control. (Tick event)
It is saving data , but losing the textbox focus (which is under the grid view).
Help me on this to put the focus back to the control (where the control had lost the focus)
Thanks in advance!
oned_gk
All-Star
30955 Points
6336 Posts
Re: Losing textbox focus which is under the Gridview after the postback happen
Dec 01, 2012 08:17 AM|LINK
try this
http://www.codeproject.com/Articles/17571/Maintain-focus-between-postbacks-in-ASP-NET-2-0-al
ajafik
Member
88 Points
35 Posts
Re: Losing textbox focus which is under the Gridview after the postback happen
Dec 09, 2012 12:37 PM|LINK
Call the Focus() method of the textbox at the click event handler of the timer you are using for the update.
Hope this helps?