Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 18th, 2006, 04:34 AM
Authorized User
 
Join Date: Aug 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default back button problem



hi friends

how can i handle IE back button

when user signout he gets login page
and if user press back button he gets the previous page
with out any validation

how can i solve this problem

i have tried
some response.cache.
objects and some meta tags
but using this
cache is get clear
so when u press back button u get "page can not be displayed"
instead i want to show only login page.


 pls give me any solution its urgent

thanks




 
Old October 18th, 2006, 10:11 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

What exactly have you tried? Please post code here.

Thanks,
Richard

 
Old October 21st, 2006, 03:52 AM
Registered User
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

have you try using sessions or cokkies to validate pages?
Quote:
quote:Originally posted by rstelma
 What exactly have you tried? Please post code here.

Thanks,
Richard

 
Old October 30th, 2006, 03:29 AM
Skb Skb is offline
Authorized User
 
Join Date: Oct 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use the following code.(Not in the Login page.Put it in the pevious page)

protected override void OnPreRender(EventArgs e)
{
 base.OnPreRender(e);
 string sb ;
 sb = "<script language=javascript>\n";
 sb += "window.history.forward(1);\n";
 sb += "\n</script>";
 Page.RegisterClientScriptBlock("clientScript",sb);
}

 
Old October 30th, 2006, 04:32 AM
Authorized User
 
Join Date: Sep 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to aneesh_sunu@yahoo.co.in Send a message via Yahoo to aneesh_sunu@yahoo.co.in
Default

Hai

Try this

http://www.experts-exchange.com/Web/..._20828609.html

http://www.codeguru.com/forum/archiv.../t-179262.html

http://www.htmlgoodies.com/tutorials...le.php/3478911





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with the Back button aldwinenriquez Classic ASP Basics 2 June 24th, 2005 01:53 AM
Browser's BACK Button Problem phungleon Classic ASP Databases 6 May 16th, 2005 03:10 PM
problem with back button. gurucharan_cs Javascript 1 April 6th, 2005 07:12 AM
Back Button Problem someshtrivedi General .NET 0 February 7th, 2005 05:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.