Hello,
If a visitor doesn't put anything in the "Search" text box I'd like them to
be redirected to where they came from before the search form forwarded them
to the search.asp page. Therefore I've put the following at the top of
search.asp to do this.
The problem is however, that if 4 1923
Sorry, didn't finish did i?! Here we go....
Hello,
If a visitor doesn't put anything in the "Search" text box I'd like them to
be redirected to where they came from before the search form forwarded them
to the search.asp page. Therefore I've put the right stuff at the top of
search.asp to do this.
The problem is however, if the last thing they did was search for something
it will redirect them to the search page, which will redirect them to the
search page, which will redirect them to the search page etc. and the
operation times out. I tried to get over this by using a variable passed to
the search page, if it's the search page that is forwarding it on. If this
variable was set it would redirect it instead to index.asp - however, it
caused problems because I was attaching ?StopTimeout=1 to the end of the
Response.Redirect URL - causing problems if the URL to redirect to already
contained the ? character and some variables. Essentially I want a way of
working out if the referring page contains a ? or not, so I know whether I
have to do ?StopTimeout=1 or &StopTimeout=1 - know what I mean?
Regards
Greg
How are you redirecting to previous page? A hidden field on the form you
pass through?
Sounds like you need to compare this against your search path and if it's
the same, don't redirect.
Think thats what you need to do.
Stu
"Greg" <te**@jmswebdesigns.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... Sorry, didn't finish did i?! Here we go....
Hello,
If a visitor doesn't put anything in the "Search" text box I'd like them
to be redirected to where they came from before the search form forwarded
them to the search.asp page. Therefore I've put the right stuff at the top of search.asp to do this.
The problem is however, if the last thing they did was search for
something it will redirect them to the search page, which will redirect them to the search page, which will redirect them to the search page etc. and the operation times out. I tried to get over this by using a variable passed
to the search page, if it's the search page that is forwarding it on. If this variable was set it would redirect it instead to index.asp - however, it caused problems because I was attaching ?StopTimeout=1 to the end of the Response.Redirect URL - causing problems if the URL to redirect to already contained the ? character and some variables. Essentially I want a way of working out if the referring page contains a ? or not, so I know whether I have to do ?StopTimeout=1 or &StopTimeout=1 - know what I mean?
Regards Greg
"Greg" <te**@jmswebdesigns.com> wrote in message
news:eI**************@TK2MSFTNGP10.phx.gbl... Hello,
If a visitor doesn't put anything in the "Search" text box I'd like them
to be redirected to where they came from before the search form forwarded
them to the search.asp page. Therefore I've put the following at the top of search.asp to do this.
The problem is however, that if
this problem is best solved with javascript on the client side
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ( http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004
What? Do you have search.htm and search.asp??
Where is the search form? Is search.asp the search form?
Jeff
"Greg" <te**@jmswebdesigns.com> wrote in message
news:#N**************@TK2MSFTNGP10.phx.gbl... Sorry, didn't finish did i?! Here we go....
Hello,
If a visitor doesn't put anything in the "Search" text box I'd like them
to be redirected to where they came from before the search form forwarded
them to the search.asp page. Therefore I've put the right stuff at the top of search.asp to do this.
The problem is however, if the last thing they did was search for
something it will redirect them to the search page, which will redirect them to the search page, which will redirect them to the search page etc. and the operation times out. I tried to get over this by using a variable passed
to the search page, if it's the search page that is forwarding it on. If this variable was set it would redirect it instead to index.asp - however, it caused problems because I was attaching ?StopTimeout=1 to the end of the Response.Redirect URL - causing problems if the URL to redirect to already contained the ? character and some variables. Essentially I want a way of working out if the referring page contains a ? or not, so I know whether I have to do ?StopTimeout=1 or &StopTimeout=1 - know what I mean?
Regards Greg
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Shrii |
last post by:
1.I read a unicode file by using codec
2.I want to pass that string to exec() statement
3.But one of my character (U+0950) in that string is not showing
properly in the output got by that exec()...
|
by: AMC |
last post by:
Hi,
I'm using an include file to store the connection string to a database.
Whenever I try to reference that string to open a connection in the page
that includes the file I get the error 'empy...
|
by: Miguel Dias Moura |
last post by:
Hello,
I am calling an ASP.NET / VB as follows:
search.aspx?search=asp%20book%20london
Then I create a string with the keywords like this:
Dim keywords() As String =...
|
by: Imran Aziz |
last post by:
Hello All,
I am getting the following error on our production server, and I dont
get the same error on the development box.
Unable to cast object of type 'System.Byte' to type 'System.String'.
...
|
by: Tom |
last post by:
Is there such a thing as a CONTAINS for a string variable in VB.NET? For
instance, I want to do something like the following:
If strTest Contains ("A","B", "C") Then
Debug.WriteLine("Found...
|
by: nishit.gupta |
last post by:
Is their any fuction available in C++ that can determine that a string
contains a numeric value.
The value cabn be in hex, int, float. i.e. "1256" , "123.566" ,
"0xffff"
Thnx
|
by: jacob navia |
last post by:
Abstract:
Continuing the discussion about abstract data types, in this
discussion group, a string collection data type is presented,
patterned after the collection in C# and similar languages...
|
by: Jeff |
last post by:
Hey
..NET 3.5
I'm trying to search a string to determine if the string contains </table>,
but string.Contains don't find it. I've used WebRequest/WebReponse to
retrieve the html from a...
|
by: SMJT |
last post by:
Does anyone know why the string contains function always returns true
if the token is an empty string? I expected it to return false.
"AnyOldText".Contains("")
or...
|
by: David Lazos |
last post by:
Hi All,
I use Contains method of String object to determine if a string variable
has another string, like that.
***************************
ipAddress.Contains("127.0.0")...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |