Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I had a page lets say User.aspx. It shows all users on a grid.On clicking view column a a row , a pop up appear that display user details. Now close the pop up and go to another page directly. Lets say CompanyDetails.aspx. Now on clicking browser back button server appear as page redirect to user details page not user page(User.aspx).How can I directly go to (User.aspx) without opening the pop up.

Many many thanks in advance.
Posted

I did it by adding history.back() at end .Previously it was


"window.open('ABC.aspx"', 'TEST', 'width=800, height=700, scrollbars=yes,resizable=yes, status=no, toolbar=no, location=no, top=45, left=45');";

changed it to
"window.open('ABC.aspx"', 'TEST', 'width=800, height=700, scrollbars=yes,resizable=yes, status=no, toolbar=no, location=no, top=45, left=45');history.back();";
 
Share this answer
 
Thanks all,


Can anyone let me know how to remove top entry from browser history ? Can we prevent a specific url to be entered in browser history ?
 
Share this answer
 
Rather than trying to handle the back button, I would suggest working around with how you display the popup on the user page. try using an ajax request for that popup.
 
Share this answer
 
hi,

Try this,
Try to delete the previous history from the browser...

http://www.ehow.com/how_7512704_delete-history-aspnet.html[^]
 
Share this answer
 

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