Disable Button on Postback


/ Published in: C#
Save to your folder(s)

Will disable the button and still allow the postback event


Copy this code and paste it in your HTML
  1. btn_Next.Attributes.Add("onclick", "this.disabled=true;" +
  2. Page.ClientScript.GetPostBackEventReference(btn_Next, "").ToString() + ";");

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.