473,395 Members | 2,010 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,395 software developers and data experts.

Successful validation still blocks postback

Hello,

I have an ASP.NET site that uses validators on a couple pages. On our
staging servers, the site works properly. When I deploy it to the live
server, however, the pages that have validators will not postback. The
validators do appear to be working properly--they show me an error if
the field is empty, and not if it isn't. I saved the generated HTML
from the staging server and the live server, and discovered that there
were a couple differences in the Javascript code related to validation.
I saved the HTML from the live server, and changed code line-by-line,
and eventually wound up with a page that would postback. So the issue
seems to be the generated HTML.

The staging and live servers are both running Win 2k3, IIS 6, .NET
Framework v1.1.4322. The live server does have an older version of .NET
Framework installed. The properties of the site in IIS are set to
process .aspx pages with the v1.1.4322 dll. The WebUIValidation.js file
appears to be in all the right places. The hosting company re-ran
aspnet_regiis.exe, which has cured mysterious ailments in the past.

Has anybody seen anything like this? Any ideas?

Thanks

Nov 19 '05 #1
1 1310
Its probably the bug in ASP.NET 1.1 SP 1. See this thread:
http://forums.asp.net/739537/ShowPost.aspx

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

<no***********@yahoo.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Hello,

I have an ASP.NET site that uses validators on a couple pages. On our
staging servers, the site works properly. When I deploy it to the live
server, however, the pages that have validators will not postback. The
validators do appear to be working properly--they show me an error if
the field is empty, and not if it isn't. I saved the generated HTML
from the staging server and the live server, and discovered that there
were a couple differences in the Javascript code related to validation.
I saved the HTML from the live server, and changed code line-by-line,
and eventually wound up with a page that would postback. So the issue
seems to be the generated HTML.

The staging and live servers are both running Win 2k3, IIS 6, .NET
Framework v1.1.4322. The live server does have an older version of .NET
Framework installed. The properties of the site in IIS are set to
process .aspx pages with the v1.1.4322 dll. The WebUIValidation.js file
appears to be in all the right places. The hosting company re-ran
aspnet_regiis.exe, which has cured mysterious ailments in the past.

Has anybody seen anything like this? Any ideas?

Thanks

Nov 19 '05 #2

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

Similar topics

4
by: Tim Meagher | last post by:
I am trying to use both validation controls and to add submit button attributes, but when I add the button attributes, the javascript fpr the validation controls is no longer created for the page. ...
1
by: Donal McWeeney | last post by:
Hi, Any pointers to manipulating client side validation being performed. For example I have a custom control that does a postback to the server - and I dont want validation to be performed...
4
by: AIM48 | last post by:
Hi. We have a framework that we work with for our project. So far we have had very good success – basically the frame work wraps many day to day tasks so that they are all included in the...
5
by: M | last post by:
Hi, it's possible to append a custom action to a client-side verification of a validation control ? I have a validator summary control that shows (automatically) a message box if the validation...
7
by: Andy Fish | last post by:
Hi, Although I have got to the bottom of this problem, it gave me quite a shock to discover how easy it is to write a very unsafe application with .Net validators. The scenario was this: we...
2
by: Roshawn Dawson | last post by:
Hi, Does code contained in <% %> blocks cause postbacks to the server? Thanks, Roshawn
0
by: dhurwitz | last post by:
Hi, In my ASP.NET 2.0 web app, I have a user control, ucBinEdges, with several text boxes. The user control has several validation controls validating the Text of these text boxes -...
3
by: teo | last post by:
Mozilla error on postback and validation ----------- A Button causes a Listbox to desappear. If no item has been selected on the Listbox, all is OK. If one or more items are selected,
4
by: Chris | last post by:
Hi, i want to validate a textbox like this: <asp:TextBox ID="vrg" runat="server" Width="495px" TextMode=MultiLine/> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"...
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
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
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
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
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,...

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.