In my application i have set focus to textbox during initial get request,
then i want to disable the focus after postback?
how we can do it?
Try
protected void Page_Load(object sender, EventArgs e) { if(!this.IsPostBack) { ScriptManager.RegisterStartupScript(this, this.GetType(), "f", "document.getElementById ('" + TextBox2.ClientID + "').focus();", true); } }
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.