[RESOLVED] Two buttons posting to different locations
Hi,
I have an asp .net form and within it two buttons. One button posts to a page, the other posts to self.
I don't have an issue, but some users report that upon pressing the first button that posts to another page, then pressing back in browser, the button that should post to itself and do stuff code behind posts to the other page.
Can anyone help, a bit of code here but its standard stuff
Code:
<asp:Button ID="btnPreview" runat="server" PostBackUrl="xpreviewmycard.asp" Text="Preview" ValidationGroup="card" CausesValidation="true" />
<asp:Button ID="btnsend" runat="server" Text="Send" ValidationGroup="card" CausesValidation="true" />
Re: Two buttons posting to different locations
Hey Ho, I added postbackurl to second button (Just calling itself) and it seems to work now.