Disable Button OnClick

Settembre 14th, 2007

Description: Disables a asp.net button on postback

Link: http://www.codekeep.net/snippets/a01521f4-0f6e-475d-a8c5-85aaf0ed8779.aspx

btnBack.Attributes.Add("onclick", GetPostBackEventReference(btnBack) & ";this.value='Please wait...';this.disabled = true;")

  • .NET
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.