Thursday, September 13, 2012

Asp.Net Button Click multiple times



protected void Page_Load(object sender, EventArgs e) { cmdSubmit.Attributes.Add("onclick", "this.disabled=true;" + ClientScript.GetPostBackEventReference(cmdSubmit, "").ToString()); } protected void Button1_Click(object sender, EventArgs e) { Response.Write("I have clicked : "+DateTime.Now.ToString()); }

Copyright © 2009 Angel