I spent for two days but I can't solve my small problem here :(.
I have a TextBox (to get keyword for searching) with AutoComplete Extender inside an Panel. I want to keep user focus to this textbox always from time to time of searching, at startup and after postback.
Some ways tried but not work for IE, Chrom... (Firefox do great job):
aspnetDev198...
Member
36 Points
28 Posts
Anyway to set focus to my textbox?
Sep 16, 2012 08:34 PM|LINK
Hi ASP.NET Members,
I spent for two days but I can't solve my small problem here :(.
I have a TextBox (to get keyword for searching) with AutoComplete Extender inside an Panel. I want to keep user focus to this textbox always from time to time of searching, at startup and after postback.
Some ways tried but not work for IE, Chrom... (Firefox do great job):
- ScriptManager.GetCurrent(this.Page).SetFocus....
- ToolkitScriptManager1.SetFocus(...
- RegisterClientScript...
- TextBox.SetFocus()
I hope you will help me, thanks!
MetalAsp.Net
All-Star
112168 Points
18255 Posts
Moderator
Re: Anyway to set focus to my textbox?
Sep 16, 2012 08:49 PM|LINK
aspnetDev198...
Member
36 Points
28 Posts
Re: Anyway to set focus to my textbox?
Sep 17, 2012 03:19 AM|LINK
Thanks MetalAsp.Net
I tried again and it's working
Thank you very much for your help
chetan.sarod...
All-Star
65789 Points
11153 Posts
Re: Anyway to set focus to my textbox?
Sep 17, 2012 03:26 AM|LINK
Refer this
http://vincexu.blogspot.in/2009/06/keep-textbox-focus-inside-updatepanel.html
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.