<asp:Button ID="bntApprove" runat="server" Text="Approve" Enabled ="false" OnClick="bntApprove_Click" Style="margin-left: 0px" ToolTip="Approve all selected people" OnClientClick="return confirm('Do you want to approve all selected people?');" />In my code I activate the button using this code (for now there is no check if all buttons are unclicked):
CheckBox chkButton = e.Row.FindControl("chkApproved") as CheckBox; if (chkButton != null) { if (this.ddlApprovedStatus.SelectedIndex == 0) { chkButton.ToolTip = "Approve " + PersonName; string JScript = "var btn = document.getElementById('" + this.bntApprove.ClientID + @"') if (btn) { //alert('CheckBox Clicked'); btn.disabled = false;}"; chkButton.Attributes.Add("OnClick", JScript); chkButton.Enabled = true; } else chkButton.Enabled = false; }However, I found that my confirmation message is gone. Do you know why? I'd like to keep the confirmation message, any ideas of how to achieve my goal?