Sorry for the interrupting.
Hi Peter,
I think the Request.UrlRefe rer or javascript window.history. go(-1) all
make sense. However, Request.UrlRefe rer will contains the original page's
location (it's a standard http header ..), however, this is not always set
by the cilent browser. And as for window.history. go(-1) , this script will
make the clientside browser go back one steps from the browser's history
list(just like when we hit the "back" button on browser...). The problem
of history.go(-1) is that when we have performed some post back on the
form, the postback version of the page will also be added into the history
list , so go(-1) one steps may not meet the requirements. So if there is
postback on the page, we may have to record this , (make a post back count
stored in viewstate...) and so that we can put the count in the history.go(
-count) as parameter...
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Peter" <pc*****@online .nospam>
| References: <O6************ **@tk2msftngp13 .phx.gbl>
<ug************ **@tk2msftngp13 .phx.gbl>
<uz************ **@TK2MSFTNGP14 .phx.gbl>
<OT************ **@TK2MSFTNGP15 .phx.gbl>
| Subject: Re: Go back where I came from
| Date: Sun, 13 Nov 2005 22:43:25 -0600
| Lines: 151
| MIME-Version: 1.0
| Content-Type: multipart/alternative;
| boundary="----=_NextPart_000_ 000E_01C5E8A3.A 8CEDE10"
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <OO************ **@tk2msftngp13 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: cpe-69-23-74-9.new.res.rr.co m 69.23.74.9
| Path:
TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GXA01.phx.gbl!T K2MSFTFEED02.ph x.gbl!tornado.f a
stwebnet.it!tis cali!newsfeed1. ip.tiscali.net! newsfeed00.sul. t-online.de!t-on
line.de!TK2MSFT NGP08.phx.gbl!t k2msftngp13.phx .gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3578 28
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| One page.
| "clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in
message news:OT******** ******@TK2MSFTN GP15.phx.gbl...
| I'm sorry, I see I failed to explain why I thought Sreejith was wrong.
| Do you want to go back only one page or back to the homepage of the
website?
| <%= Clinton Gallagher
| "Peter" <pc*****@online .nospam> wrote in message
news:uz******** ******@TK2MSFTN GP14.phx.gbl...
| I am using .NET 1.1
| "clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in
message news:ug******** ******@tk2msftn gp13.phx.gbl...
| What version of ASP.NET are you using?
| The answer Sreejith tried to give is incorrect.
| <%= Clinton Gallagher
| METROmilwaukee (sm) "A Regional Information Service"
| NET csgallagher AT metromilwaukee. com
| URL
http://metromilwaukee.com/
| URL
http://clintongallagher.metromilwaukee.com/
| "Peter" <pc*****@online .nospam> wrote in message
news:O6******** ******@tk2msftn gp13.phx.gbl...
| When user Clicks on the Close button on the main form I would
like to go back where the user came from. If my form is the first page
since IE was opened I would like to go to the specific website. Is that
possible?
| Thanks
| Peter
|