Archive for September, 2013

How to Disable a button click on client side and fire event on server side in ASP.Net

September 30, 2013 Leave a comment

Returns a string that can be used in a client event to cause postback to the server. The reference string is defined by the specified control that handles the postback and a string argument of additional event information

ControlName.Attributes.Add(“onclick”, “this.disabled=true;” + Page.ClientScript.GetPostBackEventReference(ControlName, “”));

Categories: ASP.Net