problem with pagestate when two links in aspx page

Posted by TT.LTT on Stack Overflow See other posts from Stack Overflow or by TT.LTT
Published on 2010-04-29T00:59:36Z Indexed on 2010/04/29 1:07 UTC
Read the original article Hit count: 290

Filed under:
|

I have two links in my aspx page.

one link "A" when i click it ...it is downloading some document when i click it other link "B" when I click it ....it redirects me to some other page.

Both links triggers function from code behind. Both links works fine when i first come onto page but when i click A it shows me message to download it "open" "save" "cancel"

problem is when i click cancel I remain on the same page but now no links work neither link A nor link B.

I guess there is some problem with the state my page is in . How i can avoid this? Code so far:

<asp:Linkbutton ID="linkbutton1" runat="server" Text="A" onClick="Codebehindmethod" />
<asp:Linkbutton ID="linkbutto2" runat="server" Text="B" onClick="Codebehindmethod1" > 

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about sharepoint