>this.drpSelRole.Visible = false; > this.grdvwUsers.Visible = false; > this.tblProInfo.Visible = true;>
> this.lblProfStat.Text = "Profile Saved"; > this.lblProfStat.Visible = true; > this.drpSelRole.Visible = true; > this.grdvwUsers.Visible = true; > this.tblProInfo.Visible = false;>
>protected void Page_Init(object sender, EventArgs e) > { > //this.btnCancelProfile.Attributes["onclick"] = "HideElement('" + this.tblProInfo.ClientID + "');" ; > this.btnCancelProfile.Attributes["onclick"] = "ToggleDisplay('true','GridInfo','" + > this.drpSelRole.ClientID + "','" + this.grdvwUsers.ClientID + > "');ToggleDisplay('false','ProfileInfo');return false;"; > > > this.btnAddToRole.Attributes["onclick"] = "return CheckSelected('" + this.lsbUsers.ClientID + > "','Please select Users') && CheckSelected('" + > this.LsbRoles.ClientID + "','Please select Roles');";>
this.drpSelRole.Style.Add("Display", "none"); // this.drpSelRole.Visible = false; // this.grdvwUsers.Visible = false; this.grdvwUsers.Style.Add("Display", "none");and now Cancel button works, but Save doesn't :)