Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET Browser
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 29-Apr-13 2:14am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

hi,
 
Try this,
Try to delete the previous history from the browser...
 
http://www.ehow.com/how_7512704_delete-history-aspnet.html[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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();";
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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 ?
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 195
1 ProgramFOX 130
2 Maciej Los 105
3 Sergey Alexandrovich Kryukov 105
4 Afzaal Ahmad Zeeshan 82
0 OriginalGriff 6,564
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,228
3 Manas Bhardwaj 4,717
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web03 | 2.8.1411022.1 | Last Updated 7 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100