473,769 Members | 5,784 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Site works with Firefox, not with IE ( Response.Redire ct )

I recently developed an internal website with various queries against
our SQL server. I added buttons with Response.Redire ct. 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 6396
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(o bject sender, EventArgs e)
{

Response.Redire ct("dvd.aspx?dv d=" + 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********@gma il.com> wrote:
I recently developed an internal website with various queries against
our SQL server. I added buttons with Response.Redire ct. 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.co m>
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********@gma il.com> wrote:
I recently developed an internal website with various queries against
our SQL server. I added buttons with Response.Redire ct. 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.co m>
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.Redirec t and IE, no?

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

<script runat="server">

protected void btnDVD2_Click(o bject sender, EventArgs e)
{

Response.Redire ct("dvd.aspx?dv d=" + txtSearch.Text) ;

}

protected void btnComp_Click(o bject sender, EventArgs e)
{
Response.Redire ct("company.asp x?co=" + txtSearch.Text) ;
}

protected void btnBrand_Click( object sender, EventArgs e)
{
Response.Redire ct("brand.aspx? brand=" + txtSearch.Text) ;
}
protected void btnRate_Click(o bject sender, EventArgs e)
{
Response.Redire ct("rate.aspx?m ag=" + txtSearch.Text) ;
}

protected void btnMag_Click(ob ject sender, EventArgs e)
{
Response.Redire ct("magazine.as px?mag=" + txtSearch.Text) ;
}
</script>

<html>
<head runat="server">
<title>Search Menu</title>
<BASE href="" target="Results ">
</BASE>
</head>
<body bgcolor="inacti veborder">
<form id="form1" runat="server">
<div style="text-align: center">
<asp:TextBox ID="txtSearch"
runat="server"> </asp:TextBox>&nb sp;<br />
<asp:Button ID="btnComp" runat="server" OnClick="btnCom p_Click"
Text="Company" />
<asp:Button ID="btnBrand" runat="server" Text="Brand"
OnClick="btnBra nd_Click" />
<asp:Button ID="btnDVD2" runat="server" OnClick="btnDVD 2_Click"
Text="DVD" />
<asp:Button ID="btnRate" runat="server" Text="Rate"
OnClick="btnRat e_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<spa n
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(o bject sender, EventArgs e)
{
this.Response.R edirect("dvd.as px?dvd=" + this.TextBox1.T ext);
}

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

Jon wrote:
KBuser <Ky********@gma il.com> wrote:
I recently developed an internal website with various queries against
our SQL server. I added buttons with Response.Redire ct. 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.co m>
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.Redirec t and IE, no?

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

<script runat="server">

protected void btnDVD2_Click(o bject sender, EventArgs e)
{

Response.Redire ct("dvd.aspx?dv d=" + txtSearch.Text) ;

}

protected void btnComp_Click(o bject sender, EventArgs e)
{
Response.Redire ct("company.asp x?co=" + txtSearch.Text) ;
}

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

protected void btnRate_Click(o bject sender, EventArgs e)
{
Response.Redire ct("rate.aspx?m ag=" + txtSearch.Text) ;
}

protected void btnMag_Click(ob ject sender, EventArgs e)
{
Response.Redire ct("magazine.as px?mag=" + txtSearch.Text) ;
}
</script>

<html>
<head runat="server">
<title>Search Menu</title>
<BASE href="" target="Results ">
</BASE>
</head>
<body bgcolor="inacti veborder">
<form id="form1" runat="server">
<div style="text-align: center">
<asp:TextBox ID="txtSearch"
runat="server"> </asp:TextBox>&nb sp;<br />
<asp:Button ID="btnComp" runat="server" OnClick="btnCom p_Click"
Text="Company" />
<asp:Button ID="btnBrand" runat="server" Text="Brand"
OnClick="btnBra nd_Click" />
<asp:Button ID="btnDVD2" runat="server" OnClick="btnDVD 2_Click"
Text="DVD" />
<asp:Button ID="btnRate" runat="server" Text="Rate"
OnClick="btnRat e_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<spa n
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(o bject sender, EventArgs e)
{
this.Response.R edirect("dvd.as px?dvd=" + this.TextBox1.T ext);
}

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********@gma il.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.co m>
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********@gma il.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.co m>
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.as px" name="Results">
</FRAMESET>

</FRAMESET>
</html>

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

I appreciate all the help.

Mar 21 '06 #10

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

Similar topics

2
1795
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 form: <form action=loginhandler.asp method=post> Username: <input type=text name='username'><BR> Password: <input type=password name='password'><BR> <input type=submit Value='Log In'><BR> </form>
2
4997
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 denied" error. If I just put the same address string in IE6's Address box and go to it, IE opens myusername's FTP home page just fine, so I know the FTP site is working as expected. Also, if I put in an anonymous ftp site, without the username...
7
2211
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 Calendar<br> When I hover my mouse over the link, the status bar at the bottom of the page for IE says: shortcut to 2006 11:00 AM With Firefox I get: http://sd-school/forms/cal.asp?sdate=10/18/2006 10:00 AM&location=Library&eTime=10/18/2006 11:00...
4
2602
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 button which when clicked performs the data validation. After successful validation, I need the browser to redirect to the payment processer with a form post. How can I do this? I have tried a few things, failed. Below were my most 'reasonable...
3
1493
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. www.example.com/sitea/testa.aspx www.example.com/siteb/testb.aspx What is the syntax for the server.transfer or the linkbutton?
3
3396
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 Firefox the page works flawless. Does anyone know why this is happening or how to fix it?
0
1035
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 the format of the username they will be logged in to either site B or site C. I am generating a form post from the code behind, but the login page I am posting to returns a code 200 (OK), but no redirect URI - so the original page just reloads....
20
4284
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 is structured as an upside-down tree, and (if I remember correctly) never more than 4 levels. The site basically grew (like the creeping black blob) ... all the pages were created in Notepad over the last
6
2282
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 they are redirected back to login with no errors or login failure. The same login account works fine from other machines at different locations. This client had no problem logging in before we switched. The login procedures are essentially the...
0
9423
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,...
0
10216
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9865
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8873
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
6675
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
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.