protected void buttonOk_Click(object sender, EventArgs e) { if (!chkbox.Checked) { buttonOkk.Attributes.Add("OnClick", "javascript:return chkbox()"); } else { Response.Redirect(xxxxx, false); } }
<head id="Head1" runat="server"> <title>xxxx Page</title> <script type="text/javascript"> function checkCheckBoxes() { alert ('Please check'); } </script> </head>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)