How to set focus on a Textbox on page load ?


protected void Page_Load(object sender, EventArgs e)
{ if (!Page.IsPostBack)
{ Page.SetFocus(TextBox1);
}
}

No comments:

Post a Comment

Plz Share your comments...