btnSubmit.Attributes.Add("onclick", "this.style.display='none';");
function onSubmit() { if(Page_Validate()) ...or... if(Page_Validate("Validation group name")) { $("#submit").hide(); } }
if (!Page.IsPostBack) { btnSubmit.Attributes.Add("onclick", "javascript: if (Page_ClientValidate() ){" + btnSubmit.ClientID + ".disabled=true;}" + ClientScript.GetPostBackEventReference(btnSubmit, "")); }
btn.Enabled=False
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)