G
Guest
Hi All
If user selects OK on the confirmation message box, if OK code block does not get executed at all in my asp.net application?Its in the code behind. This code is inside CheckedChanged event of check box. I see the confirmation message but only the respective action does not get executed
runat="server" and AutoPostBack="True" property is set for the check box
Please let me know where is the problem
Dim scriptString As String = "<script language=""""JavaScript""""> function DoTestClick() {
scriptString += "var answer = confirm('Are you sure you want to delete?');
scriptString += "if (answer) ProcessClick(); else return false;}
scriptString += "</script>
If (Not IsClientScriptBlockRegistered("Test_ClientScript")) The
Page.RegisterClientScriptBlock("Test_ClientScript", scriptString
End I
Thanks in advanc
Chan
If user selects OK on the confirmation message box, if OK code block does not get executed at all in my asp.net application?Its in the code behind. This code is inside CheckedChanged event of check box. I see the confirmation message but only the respective action does not get executed
runat="server" and AutoPostBack="True" property is set for the check box
Please let me know where is the problem
Dim scriptString As String = "<script language=""""JavaScript""""> function DoTestClick() {
scriptString += "var answer = confirm('Are you sure you want to delete?');
scriptString += "if (answer) ProcessClick(); else return false;}
scriptString += "</script>
If (Not IsClientScriptBlockRegistered("Test_ClientScript")) The
Page.RegisterClientScriptBlock("Test_ClientScript", scriptString
End I
Thanks in advanc
Chan