Click here to Skip to main content
16,016,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,
I am using Ajax HTML Editor control in my web application and there are also other control on that page.

Editor control is at the 3rd place.
1st and 2nd are textboxes.

Now when the page is load, cursor focus is automatically set to Editor control even i set focus on textbox on page load and set property AutoFocus="False" of Editor control from source.
but still solution less.

anyone have solution on that problem?
please help me out.
thanks in adv.
Posted

you can set focus on text box from client side i.e using jquery's documentready fuction or ms ajax pageLoad function.
 
Share this answer
 
Rather than using the code-behind to set control focus, use javascript on the client side. You don't need jquery or ajax stuff to make this happen, but rather just some very simple, basic javascript.
See http://support.microsoft.com/kb/316719[^] for details. There are some nice code snippets in here that you should be able to use.
 
Share this answer
 
Comments
Espen Harlinn 26-Jan-12 9:01am    
Good answer :)
fjdiewornncalwe 26-Jan-12 9:39am    
Thanks, Espen

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900