How can i set the cursor focus on the top of the page开发者_StackOverflow when I clicked Update button. Update button is under UpdatePanel
thank...
i'm not clear with what you mean (top of the page) So, i assume you want to focus on text box.
To do this, Add this in your page_load()'s
if(!IsPostBack)
{
btnUpdate.Attributes.Add
("onclick","document.getElementById('<%= txtName.ClientID %>').focus()");
}
Hope it works! (not tested yet)
精彩评论