473,387 Members | 1,465 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.

Our postbacks died in IE? Work fine in Firefox!?

We've had to move one of our asp.net web applications to a new internal
server.

The move worked, except that our SUBMIT buttons on all the pages no longer
trigger a postback in Internet Explorer 6. The pages work just fine in
Firefox, though.

Any idea as to what's going on? Was there some weird Windows update for IE6
that was snuck out this week? I'm not even sure where to look to begin
figuring out this problem.

-Darrel
Sep 12 '06 #1
8 7657
The move worked, except that our SUBMIT buttons on all the pages no
longer trigger a postback in Internet Explorer 6. The pages work just fine
in Firefox, though.
Here's the HTML that gets rendered to screen:

<form name="Form1" method="post" action="agents_edit.aspx?agent=new"
language="javascript" onsubmit="if (!ValidatorOnSubmit()) return false;"
id="Form1">
....
<input type="submit" name="button_savenew" value="Save New Agent"
onclick="if (typeof(Page_ClientValidate) == 'function')
Page_ClientValidate(); " language="javascript" id="button_savenew" />

-Darrel

Sep 12 '06 #2
compare the "view source" from the two browser's, and see what's different.


"darrel" <no*****@nowhere.comwrote in message news:eh**************@TK2MSFTNGP04.phx.gbl...
>The move worked, except that our SUBMIT buttons on all the pages no longer trigger a postback in Internet Explorer 6. The pages
work just fine in Firefox, though.

Here's the HTML that gets rendered to screen:

<form name="Form1" method="post" action="agents_edit.aspx?agent=new" language="javascript" onsubmit="if (!ValidatorOnSubmit())
return false;" id="Form1">
...
<input type="submit" name="button_savenew" value="Save New Agent" onclick="if (typeof(Page_ClientValidate) == 'function')
Page_ClientValidate(); " language="javascript" id="button_savenew" />

-Darrel

Sep 12 '06 #3
darrel napisał(a):
>The move worked, except that our SUBMIT buttons on all the pages no
longer trigger a postback in Internet Explorer 6. The pages work just fine
in Firefox, though.

Here's the HTML that gets rendered to screen:

<form name="Form1" method="post" action="agents_edit.aspx?agent=new"
language="javascript" onsubmit="if (!ValidatorOnSubmit()) return false;"
id="Form1">
...
There is no "language" attribute in form element neither in input
element in html! But this isn't cause of problem.
IMHO problem is in ValidatorOnSubmit function. It's probably poor
quality and only works in IE, so in FF it isn't preventing form from
submit. Check if your input is valid (in terms of your validating function).
--
PP
Sep 12 '06 #4
There is no "language" attribute in form element neither in input element
in html!
Tell that to VS.net 2003. ;o)
..
IMHO problem is in ValidatorOnSubmit function. It's probably poor quality
and only works in IE, so in FF it isn't preventing form from submit.
There is client-side validation. I turned it off on all the validation
controls, but same issue.

Plus, the client-side stuff was working before for some reason.

Anyways, I found how to 'fix' it by telling the asp:button to NOT cause
validation. Then it works fine in IE. Of course, now the page doesn't
validate. Ugh. ;o)

-Darrel
Sep 12 '06 #5
compare the "view source" from the two browser's, and see what's
different.
They're exactly the same. So it is likely the IE client side validation
that's failing. Which is odd. Why would it fail just because we moved to a
new server?

-Darrel
Sep 12 '06 #6
are you using asp.net 1.1 or 2.0 ?

1.1 has all sorts of validation problems in cross browser environments.

using 2.0 usually solves the matter.
"darrel" <no*****@nowhere.comwrote in message news:%2****************@TK2MSFTNGP03.phx.gbl...
>There is no "language" attribute in form element neither in input element in html!

Tell that to VS.net 2003. ;o)
.
>IMHO problem is in ValidatorOnSubmit function. It's probably poor quality and only works in IE, so in FF it isn't preventing form
from submit.

There is client-side validation. I turned it off on all the validation controls, but same issue.

Plus, the client-side stuff was working before for some reason.

Anyways, I found how to 'fix' it by telling the asp:button to NOT cause validation. Then it works fine in IE. Of course, now the
page doesn't validate. Ugh. ;o)

-Darrel

Sep 12 '06 #7
1.1 has all sorts of validation problems in cross browser environments.

Yea. I know. ;o)

Ok, went back, did a complete recompile, and it seems to be OK now as long
as I don't use any client-side validation. I usually try to avoid doing that
anyways, so not a huge deal.
using 2.0 usually solves the matter.
Good ol' MS. Always takes a few revisions before they get things working.
;o)

-Darrel
Sep 12 '06 #8
Make sure the validation scripts are installed on the web server.

Sep 13 '06 #9

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

Similar topics

5
by: LRW | last post by:
(Sorry if this is a repost...my newsreader keeps crashing on the posting--I don't know if the message going out or not) For some reason this javascript just won't work in Firefox. It works fine...
5
by: Dave | last post by:
(Second Try) Greetings, I have an asp.net web application that utilizes a User Control at the top of the page. My User Control contains a Server Control menu which will require postbacks. ...
3
by: Tina | last post by:
I have an aspx page with a textbox and an "add to my Account Button." when the button is pushed, my program adds the amount in the textbox to the database which, lets say takes a few seconds. If...
1
by: Frankie | last post by:
Just doing some testing here to see what happens when JavaScript is disabled. I was told somewhere along the line that PostBacks would fail because they rely on JavaScript: function...
4
by: darrel | last post by:
Our intranet server died a few months ago and we migrated everything over to a new one. When we did that, any app (asp.net 1.1) of ours that depended on client-side navigation just broke. ...
5
by: narmathabala | last post by:
Hi, I have a set of linkbuttons postback to the same page using Response.Redirect(). It works great with FF but not on IE (surprising). On IE, the PostBack does not work. Am I missing anything...
2
by: Altman | last post by:
I have created an ascx control and I am calling registerclientscriptblock. The path to the js file is relative to the aspx page and not the ascx file. The function runs fine in IE7 but in...
9
by: =?Utf-8?B?Sm9obiBCYWlsZXk=?= | last post by:
I have a ASP .Net page that allows moving around items on the page through javascript. This page works fine in IE. In FireFox however, I have found that if the page is using XHTML 1.0...
0
by: dihola | last post by:
Hi all, I have a page (C# ASP.NET) with a link button which when clicked, executes a postback that downloads a file for the user. The way this file is downloaded is: FileInfo file = new...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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?
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
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,...

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.