>protected void Page_Init(object sender, EventArgs e) > { > this.btnCancelProfile.Attributes["onclick"] = >"HideElement('" + >this.tblProInfo.ClientID + >"');ShowElement('" + this.grdvwUsers.ClientID + "');" ; > }>
>function HideElement(what) >{ >alert(what); >var x = document.getElementById(what); >alert(x); >if (x) { > x.style.display = 'none' ; > } > return true ; > } > function ShowElement(what) >{ >alert(what); >var x = document.getElementById(what); >alert(x); >if (x) { > x.style.visibility='visible'; ; > } > return true ; > }>
<input type="button" style="border: 1px solid rgb(204, 204, 204); color: rgb(40, 71, 117); background-color: rgb(255, 251, 255); font-family: Verdana; font-size: 0.8em;" id="ctl00_ContentPlaceHolder1_btnCancelProfile" onclick="HideElement('ctl00_ContentPlaceHolder1_tblProInfo'); ShowElement('ctl00_ContentPlaceHolder1_grdvwUsers'); __doPostBack('ctl00$ContentPlaceHolder1$btnCancelProfile','')" value="Cancel" name="ctl00$ContentPlaceHolder1$btnCancelProfile"/>We don't need a PostBack, how can I make it?