473,399 Members | 4,254 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,399 software developers and data experts.

Site works with Firefox, not with IE ( Response.Redirect )

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 Firefox the page
works flawless. Does anyone know why this is happening or how to fix it?

Mar 20 '06 #1
15 6361
Cool stuff! Works with FireFox and not with IE....
Do you have any sample code?

Regards,
Lars-Inge Tønnessen
Mar 20 '06 #2

Lars-Inge Tønnessen (VJ# MVP) wrote:
Cool stuff! Works with FireFox and not with IE....
Do you have any sample code?

Regards,
Lars-Inge Tønnessen


protected void btnDVD2_Click(object sender, EventArgs e)
{

Response.Redirect("dvd.aspx?dvd=" + txtSearch.Text);

}

txtSearch is a text box.
the page this is on has a frame redirect...

<BASE href="/" target="Results">
</BASE>

Mar 20 '06 #3
KBuser <Ky********@gmail.com> wrote:
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 Firefox the page
works flawless. Does anyone know why this is happening or how to fix it?


Well, it's hard to say given only the information that the "buttons do
not work". In what way do they not work? Do you get a browser request
at all? What happens? Can you give some sample code? Do you know
whether the issue is at the browser end or the server end?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Mar 20 '06 #4
Jon wrote:
KBuser <Ky********@gmail.com> wrote:
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 Firefox the page
works flawless. Does anyone know why this is happening or how to fix it?


Well, it's hard to say given only the information that the "buttons do
not work". In what way do they not work? Do you get a browser request
at all? What happens? Can you give some sample code? Do you know
whether the issue is at the browser end or the server end?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

It's client side that it fails, as the page works fine with one browser
and not another, as I've stated twice. Nothing happens, the page just
sits there (in Internet Explorer).

I'm not sure how I can be more clear here. I had a page so people could
query our database. I had a button and a text box. The queries and
searches worked fine on both browsers. I added a few buttons and create
the script behind them to pass the text box values to the proper page
with the correct query string.... The page works fine in Firefox,
however IE stopped working. So it must be something with
Reponse.Redirect and IE, no?

<%@ Page Language="C#" %>

<script runat="server">

protected void btnDVD2_Click(object sender, EventArgs e)
{

Response.Redirect("dvd.aspx?dvd=" + txtSearch.Text);

}

protected void btnComp_Click(object sender, EventArgs e)
{
Response.Redirect("company.aspx?co=" + txtSearch.Text);
}

protected void btnBrand_Click(object sender, EventArgs e)
{
Response.Redirect("brand.aspx?brand=" + txtSearch.Text);
}
protected void btnRate_Click(object sender, EventArgs e)
{
Response.Redirect("rate.aspx?mag=" + txtSearch.Text);
}

protected void btnMag_Click(object sender, EventArgs e)
{
Response.Redirect("magazine.aspx?mag=" + txtSearch.Text);
}
</script>

<html>
<head runat="server">
<title>Search Menu</title>
<BASE href="" target="Results">
</BASE>
</head>
<body bgcolor="inactiveborder">
<form id="form1" runat="server">
<div style="text-align: center">
<asp:TextBox ID="txtSearch"
runat="server"></asp:TextBox>&nbsp;<br />
<asp:Button ID="btnComp" runat="server" OnClick="btnComp_Click"
Text="Company" />
<asp:Button ID="btnBrand" runat="server" Text="Brand"
OnClick="btnBrand_Click" />
<asp:Button ID="btnDVD2" runat="server" OnClick="btnDVD2_Click"
Text="DVD" />
<asp:Button ID="btnRate" runat="server" Text="Rate"
OnClick="btnRate_Click" />
<asp:Button ID="btnMag" runat="server" Text="Magazine"
OnClick="btnMag_Click" /><br />
<span style="font-family: Courier New"><span style="font-size:
24pt"><span style="color: #00cc00">
<span style="color: #0033ff">Search</span>Mag</span><span
style="color: #0033ff"><span><span>Stats<span
style="font-size:
7pt">v.04</span></span></span></span></span></span></div>
</form>
</body>
</html>

Mar 20 '06 #5
This code + base is working on my computer using IE 6.
What IE version etc...Any plugins in IE etc...?

protected void Button1_Click(object sender, EventArgs e)
{
this.Response.Redirect("dvd.aspx?dvd=" + this.TextBox1.Text);
}

Regards,
Lars-Inge Tønnessen
Mar 20 '06 #6

Jon wrote:
KBuser <Ky********@gmail.com> wrote:
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 Firefox the page
works flawless. Does anyone know why this is happening or how to fix it?


Well, it's hard to say given only the information that the "buttons do
not work". In what way do they not work? Do you get a browser request
at all? What happens? Can you give some sample code? Do you know
whether the issue is at the browser end or the server end?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too


t's client side that it fails, as the page works fine with one browser
and not another, as I've stated. Nothing happens, the page just
sits there (in Internet Explorer).

I'm not sure how I can be more clear here. I had a page so people could
query our database. I had a button and a text box. The queries and
searches worked fine on both browsers. I added a few buttons and create
the script behind them to pass the text box values to the proper page
with the correct query string.... The page works fine in Firefox,
however IE stopped working. So it must be something with
Reponse.Redirect and IE, no?

<%@ Page Language="C#" %>

<script runat="server">

protected void btnDVD2_Click(object sender, EventArgs e)
{

Response.Redirect("dvd.aspx?dvd=" + txtSearch.Text);

}

protected void btnComp_Click(object sender, EventArgs e)
{
Response.Redirect("company.aspx?co=" + txtSearch.Text);
}

protected void btnBrand_Click(object sender, EventArgs e)
{
Response.Redirect("brand.aspx?brand=" + txtSearch.Text);
}

protected void btnRate_Click(object sender, EventArgs e)
{
Response.Redirect("rate.aspx?mag=" + txtSearch.Text);
}

protected void btnMag_Click(object sender, EventArgs e)
{
Response.Redirect("magazine.aspx?mag=" + txtSearch.Text);
}
</script>

<html>
<head runat="server">
<title>Search Menu</title>
<BASE href="" target="Results">
</BASE>
</head>
<body bgcolor="inactiveborder">
<form id="form1" runat="server">
<div style="text-align: center">
<asp:TextBox ID="txtSearch"
runat="server"></asp:TextBox>&nbsp;<br />
<asp:Button ID="btnComp" runat="server" OnClick="btnComp_Click"
Text="Company" />
<asp:Button ID="btnBrand" runat="server" Text="Brand"
OnClick="btnBrand_Click" />
<asp:Button ID="btnDVD2" runat="server" OnClick="btnDVD2_Click"
Text="DVD" />
<asp:Button ID="btnRate" runat="server" Text="Rate"
OnClick="btnRate_Click" />
<asp:Button ID="btnMag" runat="server" Text="Magazine"
OnClick="btnMag_Click" /><br />
<span style="font-family: Courier New"><span style="font-size:
24pt"><span style="color: #00cc00">
<span style="color: #0033ff">Search</span>Mag</span><span
style="color: #0033ff"><span><span>Stats<span
style="font-size:
7pt">v.04</span></span></span></span></span></span></div>
</form>
</body>
</html>

Mar 20 '06 #7

Lars-Inge Tønnessen (VJ# MVP) wrote:
This code + base is working on my computer using IE 6.
What IE version etc...Any plugins in IE etc...?

protected void Button1_Click(object sender, EventArgs e)
{
this.Response.Redirect("dvd.aspx?dvd=" + this.TextBox1.Text);
}

Regards,
Lars-Inge Tønnessen


IE version 6.0.2900.2180 with XP service pack 2

I accessed the site from another computer using firefox and it worked
fine. Then accessed from the same computer with IE and it doesn't work.
Thank you for trying that on your computer.

Mar 20 '06 #8
KBuser <Ky********@gmail.com> wrote:
Well, it's hard to say given only the information that the "buttons do
not work". In what way do they not work? Do you get a browser request
at all? What happens? Can you give some sample code? Do you know
whether the issue is at the browser end or the server end?
It's client side that it fails, as the page works fine with one browser
and not another, as I've stated twice.


That doesn't mean it's a client side problem though. There are any
number of things which could be server side problems but cause one
browser to fail and one to work.
Nothing happens, the page just sits there (in Internet Explorer).
Ah, finally, some information about what happens. You hadn't said what
had happened at all - only that it didn't work.
I'm not sure how I can be more clear here.


Well, the example should help. Having said which, it's not as short as
it could be - when giving examples it's worth making them as short as
possible. It would also help if you'd say which page you've given us
here, so we know whether the button is trying to redirect to the same
page or a different page.

I'll have a look at what you've given us when I've got some time
tonight.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Mar 21 '06 #9

Jon wrote:
KBuser <Ky********@gmail.com> wrote:
Well, it's hard to say given only the information that the "buttons do
not work". In what way do they not work? Do you get a browser request
at all? What happens? Can you give some sample code? Do you know
whether the issue is at the browser end or the server end?


It's client side that it fails, as the page works fine with one browser
and not another, as I've stated twice.


That doesn't mean it's a client side problem though. There are any
number of things which could be server side problems but cause one
browser to fail and one to work.
Nothing happens, the page just sits there (in Internet Explorer).


Ah, finally, some information about what happens. You hadn't said what
had happened at all - only that it didn't work.
I'm not sure how I can be more clear here.


Well, the example should help. Having said which, it's not as short as
it could be - when giving examples it's worth making them as short as
possible. It would also help if you'd say which page you've given us
here, so we know whether the button is trying to redirect to the same
page or a different page.

I'll have a look at what you've given us when I've got some time
tonight.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too


Thank you Jon. The page I showed was the menu (top row) of the
frameset. The redirect (Response) is directed at the 2nd frame. Both of
these aspx pages are on default.htm.
This is the code behind default.
<html>
<head>
<title>Search</title>
</head>

<FRAMESET COLS="100%">
<FRAMESET ROWS="16%,84%" border="0">
<FRAME SRC="menu.aspx" name="Menu" scrolling="no" noresize>
<FRAME SRC="results.aspx" name="Results">
</FRAMESET>

</FRAMESET>
</html>

Results.aspx is a place holder with "no code".

I appreciate all the help.

Mar 21 '06 #10
Oops... I forgot to mention these, the fact that my sample code worked
for Lars makes me think one of these lines might be the issue.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

and
<html xmlns="http://www.w3.org/1999/xhtml" >

Mar 21 '06 #11
I have a feeling this might work, trying it now...
http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd

Mar 21 '06 #12
KBuser <Ky********@gmail.com> wrote:
Thank you Jon. The page I showed was the menu (top row) of the
frameset.


Okay - so the first thing to do is try to reproduce the problem outside
frames. Create the shortest page you can that still demonstrates the
problem. Get rid of things one at a time until the problem goes away -
or start from scratch. Once you've got that minimal example, the cause
of the problem may well be apparent - and if it's not, it will be
*much* easier for others to help you.

This is a great strategy for problem-solving in general, not just
asp.net problems.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Mar 21 '06 #13
I have the same problem:
I have big asp.net , c# project with many buttons and image buttonsthat
suddenly stop firing, when you click on button form -nothings happen.
It is a project more than 6 months old and all the time so far all
buttons worked just fine, but now...not

What strange that in Firefox they are still work fine, but not in IE.

When I create another project buttnons work without problems so itseems
my project is somehow screwed up.

I tried move project to another computer - same thing.

I tried to reinstall framework (aspnet_regiis.exe), it didn't help

Anybody knows solution ???

Thanks


*** Sent via Developersdex http://www.developersdex.com ***
Mar 31 '06 #14
Fixed! It was one problematic javascript on my page that prevent page
to be rendered in IE properly.When I remove that javascript everything
went smoothly.

Anybody with same problem: pay attention on javascript on your pages

Regards;

*** Sent via Developersdex http://www.developersdex.com ***
Apr 3 '06 #15
It seems to be this piece of code that is causing the issue for me.
<BASE href="" target="Results">
</BASE>

Apr 9 '06 #16

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

Similar topics

2
by: Geoff Wickens | last post by:
I have been trying to control access to some pages on my website for some time without success. I have tried copying the code found on the web: I created a page (loginform.asp) with the following...
2
by: Ron Howard | last post by:
I am trying to use the following in an ASP page to redirect a user to a non-anonymous FTP site: response.redirect("ftp://myusername:mypassword@ftp.mysite.com") but I keep getting a "permission...
7
by: Tom Petersen | last post by:
I must have the format of the below line wrong for IE: click <a href="cal.asp?sdate=<% =strDate1 %>&location=<% =strLocation %>&eTime=<% =strDate2 %>">here</a> to add this information to your...
4
by: Wayne P. | last post by:
I'm working on a shopping cart webapp and I need to perform a form POST of data to a 3rd party site (a payment processor, StormPay). I seem to be having problems doing this. I have an image...
3
by: eswanson | last post by:
I have a main site www.example.com which has a form. On the form is 2 command buttons. One button I can to go to testa.aspx and one button I want to go to testb.aspx. ...
3
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...
0
by: Stu | last post by:
Hi, I need to post log in details from one web site to another to log the user in to one of two sites. The user will enter a username and password in to textboxes on site 'A', and depending on...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
6
by: =?Utf-8?B?S2VsbHk=?= | last post by:
We just switched our web application from .NET 1.1 to 2. Once client can't login out of several that have been successful. They enter a correct user name and password, click the login button and...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.