« Return to the main article
Hi Jack This article is really good.I have a little problem getting this executed though.I am working in asp.net1.1 and i have button on which i am trying to bypass the onBeforeUnload event.But it keeps giving me error.Here is the code i am using.
<asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 387px; POSITION: absolute; TOP: 201px" runat="server" Text="Button" onclick="isDocBeingSubmitted = true;document.forms[0].submit();"></asp:Button>
and the error i am getting is "CS1026: ) expected"
Can you help me on this.
Thanks Kamal
Hi Jack This article is really good.I have a little problem getting this executed though.I am working in asp.net1.1 and i have button on which i am trying to bypass the onBeforeUnload event.But it keeps giving me error.Here is the code i am using.
<asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 387px; POSITION: absolute; TOP: 201px" runat="server" Text="Button" onclick="isDocBeingSubmitted = true;document.forms[0].submit();"></asp:Button>
and the error i am getting is "CS1026: ) expected"
Can you help me on this.
Thanks Kamal