Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Where I can set focus and set the default button in .aspx page when using master page?
Posted
Updated 23-Sep-11 5:44am
v2

You can set the defaultbutton property. Check the link for more info:
http://weblogs.asp.net/scottgu/archive/2005/08/04/421647.aspx[^]

Good luck!
 
Share this answer
 
ScriptManager.RegisterStartupScript(rnumPosenr, GetType(Page), "success", String.Format("(document.getElementById('{0}')).focus();", rnumPosenr.ClientID), True)
 
Share this answer
 

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