User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 456,594 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,499 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1027 | Replies: 3
Reply
Join Date: Sep 2007
Posts: 7
Reputation: vinaii is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vinaii vinaii is offline Offline
Newbie Poster

how can we prevent a page from moving to back page?

  #1  
Sep 10th, 2007
how can we prevent a page from moving to back page?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2007
Posts: 70
Reputation: zmariow is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
zmariow's Avatar
zmariow zmariow is offline Offline
Junior Poster in Training

Re: how can we prevent a page from moving to back page?

  #2  
Sep 10th, 2007
I've read somewhere that there is a way to handle the Back button click using Javascript... Google it
Good luck...
Reply With Quote  
Join Date: Sep 2007
Posts: 9
Reputation: rmaheshmsc is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rmaheshmsc rmaheshmsc is offline Offline
Newbie Poster

Re: how can we prevent a page from moving to back page?

  #3  
Sep 11th, 2007
Place the following script in .ascx (which one is common in all the forms in projects) or use this code in seprate page........

<script language="javascript" type="text/javascript">
history.forward()
</script>
Reply With Quote  
Join Date: Aug 2007
Posts: 70
Reputation: zmariow is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
zmariow's Avatar
zmariow zmariow is offline Offline
Junior Poster in Training

Re: how can we prevent a page from moving to back page?

  #4  
Sep 11th, 2007
Originally Posted by rmaheshmsc View Post
Place the following script in .ascx (which one is common in all the forms in projects) or use this code in seprate page........

<script language="javascript" type="text/javascript">
history.forward()
</script>


Wouldn't this cause the page to go back and then jump forward again? This is not good especially on slow internet connections!!! Did you test it?
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 6:48 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC