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 Kornfeld Eliyahu Peter 275
1 Maciej Los 214
2 Sergey Alexandrovich Kryukov 200
3 King Fisher 185
4 OriginalGriff 163
0 OriginalGriff 6,223
1 DamithSL 4,724
2 Maciej Los 4,196
3 Kornfeld Eliyahu Peter 3,894
4 Sergey Alexandrovich Kryukov 3,496


Advertise | Privacy | Mobile
Web02 | 2.8.141220.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