473,719 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

response.redire ct

I'm using VB.NET 2003.

I can send a user back one page with this command:
Response.Redire ct(Request.Serv erVariables("HT TP_REFERER").

Is there a simple way to send him back two pages?

Thanks,

Dave
Nov 21 '05 #1
17 5043
Dan
"Dave" <da************ *************** **@stic.net> wrote in message
news:eR******** ******@TK2MSFTN GP14.phx.gbl...
I'm using VB.NET 2003.

I can send a user back one page with this command:
Response.Redire ct(Request.Serv erVariables("HT TP_REFERER").

Is there a simple way to send him back two pages?


Use javascript:

Response.Write "<script language=javasc ript> history.back(-2); </script>"

HTH
Nov 21 '05 #2
The server doesn't know about anything further back than the page you just
came from. You need client-side code (as provided in the other reply)
because only the browser knows its own history.
"Dave" <da************ *************** **@stic.net> wrote in message
news:eR******** ******@TK2MSFTN GP14.phx.gbl...
I'm using VB.NET 2003.

I can send a user back one page with this command:
Response.Redire ct(Request.Serv erVariables("HT TP_REFERER").

Is there a simple way to send him back two pages?

Thanks,

Dave

Nov 21 '05 #3
Yes, sir, I like that!

Thanks.

Dave
"Dan" <daniel_c_hate_ spam@NoSpam_myr ealbox.com> wrote in message
news:ug******** *****@TK2MSFTNG P10.phx.gbl...
"Dave" <da************ *************** **@stic.net> wrote in message
news:eR******** ******@TK2MSFTN GP14.phx.gbl...
I'm using VB.NET 2003.

I can send a user back one page with this command:
Response.Redire ct(Request.Serv erVariables("HT TP_REFERER").

Is there a simple way to send him back two pages?


Use javascript:

Response.Write "<script language=javasc ript> history.back(-2); </script>"

HTH

Nov 21 '05 #4
"Dan" <daniel_c_hate_ spam@NoSpam_myr ealbox.com> schrieb:
I'm using VB.NET 2003.

I can send a user back one page with this command:
Response.Redire ct(Request.Serv erVariables("HT TP_REFERER").

Is there a simple way to send him back two pages?


Use javascript:

Response.Write "<script language=javasc ript> history.back(-2); </script>"


.... which won't work if JavaScript is disabled on the client.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #5
Herfried,
Use javascript:

Response.Write "<script language=javasc ript> history.back(-2); </script>"


... which won't work if JavaScript is disabled on the client.

Than probably nothing will work with ASPX. An aspx page is completly build
around JavaScript.(In standard setting, it can AFAIK also be VBScript,
however that I never tried)

:-)

Cor
Nov 21 '05 #6
Scott,
The server doesn't know about anything further back than the page you just
came from. You need client-side code (as provided in the other reply)
because only the browser knows its own history.


The server knows only what it has in his session.items, cache or shared
classes (the last two shared for all active clients from the application).
There is no page information at all on the server.

Cor
Nov 21 '05 #7
Uh, no it's not. It is terribly inaccurate to say that ASP.NET is
"completely built around JavaScript". There is nothing in the architecture
that is JavaScript based.

JavaScript is used by the validation controls and some of the page
properties, but you can certainly work with ASP.NET and have the bulk of its
functionality available with scripting turned off.
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Herfried,
Use javascript:

Response.Write "<script language=javasc ript> history.back(-2);
</script>"


... which won't work if JavaScript is disabled on the client.

Than probably nothing will work with ASPX. An aspx page is completly build
around JavaScript.(In standard setting, it can AFAIK also be VBScript,
however that I never tried)

:-)

Cor

Nov 21 '05 #8
Cor, you are incorrect. The HTTPRequest object exposes the ServerVariables
collection which contains environmental information about both the client
and the server and includes the current document's referring page.
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:ej******** ******@TK2MSFTN GP10.phx.gbl...
Scott,
The server doesn't know about anything further back than the page you
just came from. You need client-side code (as provided in the other
reply) because only the browser knows its own history.


The server knows only what it has in his session.items, cache or shared
classes (the last two shared for all active clients from the application).
There is no page information at all on the server.

Cor

Nov 21 '05 #9

This is turning into a nice discussion :-)

But i think it all mathers on how you code cause my websites for instance
know more about the client as should be possible refering the below
statements
How ??? well a nice SQL server does the trick.....

Regarding the Javascript ???? Oh God I wish it was pure Javascript 1.2 that
Microsoft uses in ASP.Net controls
well surprise !!!! it isn`t Javascript it is Jscript ( Microsoft`s own
implementation )

How do i know that ?? well my biggest web project until so far (
http://www.tireponline.de ) is made for one of our customers who needed a
platform independent website ( Windows \ Linux )
well i got the Job and i know now why other software company`s smiled and
said goodbye :-) .

Cause i really had to reinvent the weel for a lot of standard functionality
because it did not work on Mozilla \ Conqueror

While i prooved that it is good possible to make a true platform independent
website ,,,, however it requires some thorough knowledge of javascript

M. Posseth [MCP Developer]


"Scott M." <s-***@nospam.nosp am> wrote in message
news:eY******** ******@TK2MSFTN GP14.phx.gbl...
Cor, you are incorrect. The HTTPRequest object exposes the ServerVariables collection which contains environmental information about both the client
and the server and includes the current document's referring page.
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:ej******** ******@TK2MSFTN GP10.phx.gbl...
Scott,
The server doesn't know about anything further back than the page you
just came from. You need client-side code (as provided in the other
reply) because only the browser knows its own history.


The server knows only what it has in his session.items, cache or shared
classes (the last two shared for all active clients from the application). There is no page information at all on the server.

Cor


Nov 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3905
by: Paul | last post by:
I'm not getting the results I want when I use Response.Redirct in a ASP page. I enter this line of code in a asp page from domain1.com. Response.Redirect "http://www.domain2.com/VDIR2/table.asp" & "?PubID=" & PubID & "&PubName=" & PubName The query string is data to open a DB. the page displays
4
3057
by: JC | last post by:
Hi, I have a simple question regarding the Response.Redirect method. Does the server stop processing the ASP code as soon as it encounters the Redirect command? Or does it ever continue to process the page? Basically, with the following code: Response.Redirect("../newpage.asp")
4
14616
by: TomT | last post by:
Hi.. I'm redirecting users to another page using: response.redirect("newpage.asp") this works... But I need to add a variable to the page specified.. IE: newpage.asp?id=JobID
6
4320
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx serves two purposes, 1. it contains a tab strip with response.redirects to navigate to the other pages; 2. I authenticate the user by check to see if a cookie exists, if it doesn't I redirect to a login screen.
3
818
by: Sehboo | last post by:
On my ASP page, when I click a button, I want to do three things: 1. Check for some values. 2. Open a new window and pass some values as query string. 3. Redirect to some other page Here is the code: If (sServiceCenter = "*ALL") Then sServiceCenter = "%"
13
4696
by: Tim | last post by:
Hello, Is there a way to "cancel" a response.Redirect? For example, in the code below, could I insert anything in the Catch statement that would cancel the redirect and resume flow after the try-catch? Try Response.Redirect(strPage) Catch ex1 As Threading.ThreadAbortException ex1 = ex1 'Cancel Respone here
10
9513
by: Niggy | last post by:
I get an error - any help appreciated. System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse) at WebApplication1.WebForm4.DropDownList1_SelectedIndexChanged(Object sender, EventArgs e) in...
5
4569
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks a session variable, and if it is not present, does a Response.Redirect to a webpage for the CAS passing a url parameter for the url to post back to. The CAS provides a page for the user to log into, validates the username and password, and then...
4
11433
by: mike.biang | last post by:
I have an ASP page that is using an XMLHTTP object to request various pages from my server. I keep a single session throughout the XMLHTTP requests by bassing the ASPSESSIONID cookie through the XMLHTTP object. However, when the page requested through the XML object makes a <%Response.Redirect()%> call, a new session is created each time. Is this a flaw in the XMLHTTP Object? How can I force the session to remain the same after a...
9
4344
by: RN1 | last post by:
When a server encounters the line Response.Redirect("abcd.asp") in a ASP script, the server tells the browser that it has to be redirected to another page (which is abcd.asp, in this case). The browser then makes a new request to the server to redirect itself to abcd.asp after which the user gets redirected to abcd.asp. But in case of Server.Execute (or Server.Transfer), when the server
0
8829
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8726
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9125
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7997
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5972
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4746
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3186
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2125
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.