473,387 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

2.0: Response.Redirect fails randomly

Hello,
I would like to ask you a question concerning Response.Redirect
method. I have such call in my application and I don't understand why
the call sometimes (random behavior) does not work ("cannot open
page"). Here is my source code (I am from Poland):

case "Google":
Response.Redirect("http://www.google.pl/search?hl=pl&q=" +
ToFind +
"+.NET+Microsoft+&btnG=Wyszukaj+w+Google&lr=") ;
break;
case "Yahoo":
Response.Redirect("http://search.yahoo.com/search?p=" +
ToFind +

"+.NET+Microsoft&sm=Yahoo%21+Search&fr=FP-tab-web-t&toggle=1&cop=&ei=UTF-8");
break;
case "AltaVista":

Response.Redirect("http://www.altavista.com/web/results?itag=ody&q="+
ToFind +
"+.NET+Microsoft&kgs=0&kls=0");
break;

Usually it works fine but sometimes I got error.
Please help. Thank you very much.
/RAM/
May 4 '06 #1
1 2217
When you get the error, what is the exact URL? Can you copy it from the
address bar, and open a new browser, and test it?

Jeff

"R.A.M." <r_********@poczta.onet.pl> wrote in message
news:ai********************************@4ax.com...
Hello,
I would like to ask you a question concerning Response.Redirect
method. I have such call in my application and I don't understand why
the call sometimes (random behavior) does not work ("cannot open
page"). Here is my source code (I am from Poland):

case "Google":
Response.Redirect("http://www.google.pl/search?hl=pl&q=" +
ToFind +
"+.NET+Microsoft+&btnG=Wyszukaj+w+Google&lr=") ;
break;
case "Yahoo":
Response.Redirect("http://search.yahoo.com/search?p=" +
ToFind +

"+.NET+Microsoft&sm=Yahoo%21+Search&fr=FP-tab-web-t&toggle=1&cop=&ei=UTF-8");
break;
case "AltaVista":

Response.Redirect("http://www.altavista.com/web/results?itag=ody&q="+
ToFind +
"+.NET+Microsoft&kgs=0&kls=0");
break;

Usually it works fine but sometimes I got error.
Please help. Thank you very much.
/RAM/

May 4 '06 #2

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

Similar topics

9
by: mallyonline | last post by:
I last posted to this group about 6 months ago and was very pleased by the excellent response I got and the great help offered to me. I am back this time with another request for your expert help...
6
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...
0
by: Alfonso Alvarez | last post by:
Hi all: I have a problem with my webpage when I try to make a response.redirect and i have de smartnavigation option set true. If I put smartnavigation to false it works fine, but if I have...
1
by: Lionel | last post by:
Hi, I've a VB .Net web app (for example foo) on an internal server. In the intranet we can access this application like this : http://myserver/foo/index.aspx. Now we want to make this...
15
by: KBuser | last post by:
I recently developed an internal website with various queries against our SQL server. I added buttons with Response.Redirect. These buttons do not work with Internet Explorer, however when using...
5
by: ODAN | last post by:
We are testing a ASP.NET application in Visual Studion 2003 and written in C#. One of the pages that register new users on this application fails to redirect to another page when the button is...
12
by: Jim Rodgers | last post by:
I have a big asp file that has an error under certain conditions -- totally repeatable. However, it only fails when I set response.buffer = True at the top. WHen I set it False in order to debug...
4
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...
2
by: daveh551 | last post by:
Okay, I asked a question a week or so ago asking for an explanation on relative URL's and the "~" symbol, and several people explained that the "~" is only usable when the URL is going to be parsed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.