torsdag 3 september 2009

Disable button on click

In your sourcefile (VB):
btnSubmit.Attributes.Add("onclick", "this.disabled=true;" + ClientScript.GetPostBackEventReference(btnSubmit, "").ToString())