Click here to Skip to main content
15,940,550 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all.
I Have two pages parent page and child ,
In parent page i have pagination. from second page of parent page i'm navigating to the child page.
after dong some operations in the child page i'm going back to parent page .
but it is going back to fist page of parent page.
i need if i navigate to child page from 5th page of parent then i should go back to 5th page only.

Thank you
Venkatesh.
Posted
Updated 7-Jul-13 20:08pm
v2
Comments
Sushil Mate 8-Jul-13 2:00am    
seriously? I didn't get your question. can you read it again. it doesn't make sense to me.

1 solution

Try this....:)

C#
<asp:button id="btnBack" runat="server" text="Back" xmlns:asp="#unknown">
OnClientClick="JavaScript: window.history.back(1); return false;"></asp:button>



or


C#
private void btnBack_Click(object sender, System.EventArgs e)
{
    string prevPage = Request.UrlReferrer.ToString();
    Response.Redirect(prevPage);
}
 
Share this answer
 
Comments
narla.venkatesh 8-Jul-13 2:30am    
Thanq nirav.
I tried the 1st one before u said but after some internal clicks in the child page and and then goback button its navigating to the same child page till completing all the internal clicks.

the second solution which you said is if i navigate to child page from the 4th or 5th and going back to parent its going to 1st page of parent only..
Nirav Prabtani 8-Jul-13 2:34am    
Try this...:)

Back

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900