How to redirect on previous page ??? [Resolved]

Posted by S.Preeti under ASP.NET on 9/30/2012 | Points: 10 | Views : 9440 | Status : [Member] | Replies : 2
i want to redirect on previous page in asp.net using c#




Responses

Posted by: Ranjeet_8 on: 9/30/2012 [Member] [MVP] Gold | Points: 50

Up
0
Down

Resolved
Try this,

<a href="javascript:history.go(-1);">Go To Previous Page</a>
OR,
<asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="javascript:history.go(-1);">
Go To Previous Page</asp:LinkButton>


S.Preeti, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 9/30/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

try this code

Response.Redirect(Request.UrlReferrer.ToString());


Mark as Answer if its helpful to you

S.Preeti, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response