Is there a way for me to make a code on a quit button that will return me to the page that called? Fixing the page does not give, because this page (queryprocess) is called from several others.
I did so and it is giving me error:
<span id="sair">
<asp:LinkButton ID="sairbutton" Text="[x] sair" runat="server"
onclick="history.go(-1);" />
</span>
Error:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1026: ) expected
Source Error:
Line 643:
Line 644: <span id="sair">
Line 645: <asp:LinkButton ID="sairbutton" Text="[x] sair" runat="server"
Line 646: onclick="history.go(-1);" />
Line 647: </span>
It says it's missing a ")", but where do I put it?
Does not rotate. It did not give more error, but it does not work. My script.
<script type="text/javascript">
function voltarPagina() {
history.go(-1);
}
</script>
My asp.net
<span id="sair">
<asp:LinkButton ID="sairbutton" Text="[x] sair" runat="server"
OnClientClick="voltarPagina();" />
</span>
No error, but no return to the page that called, continues on the same page.