Setting Defaultbutton and Defaultfocus in aspx page.

Vishalneeraj-24503
Posted by Vishalneeraj-24503 under ASP.NET category on | Points: 40 | Views : 253
Write the below code in the page load event.
Page.Form.DefaultButton = ButtonSubmit.ClientID;
Page.Form.DefaultFocus = TextBoxName.ClientID;

Comments or Responses

Login to post response