473,385 Members | 1,798 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,385 software developers and data experts.

Validation controls seem to be breaking my pages - sometimes

Hi,

Has anyone experienced the problem where validation controls stop a
previously working page from submitting.

Sometimes, when I move between my work machine and my home machine
validation that was previously working perfectly just starts to bugger up
the page.

One normally happens is I'll have it working fine at work and then when I
bring it home, the validation works - in that it captures required fields
being empty and so on, but when the page shouldnt have any problems the
buttons on the page just refuse to do anything. They refuse to submit.

It took me a whilst to figure out that it was defineately the validation
controls that were causing the problems. I had to rebuild a page from
scratch and noticed that as soon as I added a required field validation
control the whole page wont submit when it should.

As soon as i remove the val control everything starts working again. Its
like when you press the button the code behind the page that does the submit
never gets called.

I'm sure I'm doing something stupid but I can't see what the problem is and
I' getting really fed up with it now.

Any help would be great.

Many thanks everyone

Simon
Nov 18 '05 #1
1 1421
On Sun, 31 Oct 2004 12:17:18 -0000, "Simon"
<sh856531@microsofts_free_email_service.com> wrote:
Has anyone experienced the problem where validation controls stop a
previously working page from submitting. Sometimes, when I move between my work machine and my home machine
validation that was previously working perfectly just starts to bugger up
the page.

One normally happens is I'll have it working fine at work and then when I
bring it home, the validation works - in that it captures required fields
being empty and so on, but when the page shouldnt have any problems the
buttons on the page just refuse to do anything. They refuse to submit.

It took me a whilst to figure out that it was defineately the validation
controls that were causing the problems. I had to rebuild a page from
scratch and noticed that as soon as I added a required field validation
control the whole page wont submit when it should.

As soon as i remove the val control everything starts working again. Its
like when you press the button the code behind the page that does the submit
never gets called.


I've not had problems with submitting as such - but certainly I've
seen pages where adding a validation control breaks the onclick events
of controls. The reason in my case was that when you add a validation
control, some javascript is appended to whatever code you already have
for your onclick events. If you haven't terminated that code with a
semicolon, you end up with invalid javascript, which I think it
causing the problems you see.

HTH

Gareth
Nov 18 '05 #2

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

Similar topics

67
by: Scott Meyers | last post by:
I have a web site that, due to maintenance by several people, some of whom are fairly clueless about HTML and CSS, etc. (notably me), has gotten to the point where I'm pretty sure it's suffering...
41
by: Gérard Talbot | last post by:
Cross-posted to: comp.infosystems.www.authoring.html and alt.html Followup-to: comp.infosystems.www.authoring.html 1- One day, I stumbled across a website that offers to validate webpages. What...
1
by: dhurwitz | last post by:
Hi I have developed a web app with a dozen or so pages, which allows searching for and editing orders by OrderID. There is a search page for entering multiple search criteria. In addition, each...
2
by: Martyn Fewtrell | last post by:
Dear All I have a Windows 2003 Server with IIS6 where the validation controls on ASP.Net pages no longer work. I believe it to be specific to the server as if I create an ASP.Net page on the...
2
by: Eric Maia | last post by:
I have two UserControls I am using in a form. These are each also used separately in two other forms. The structure is essentially this: CourseUserControl.ascx - select or enter a course...
5
by: rodchar | last post by:
hey all, in my page load i'm attaching a javascript confirm message to my save button. my problem is i have some client side validation which uses a Custom Validator web control and when i make...
4
by: Lloyd Dupont | last post by:
I am writing a 'blog control' which, amongst other things, let you edit some HTML text. When it's submited back there are validation problem and to my... *Horrible Disbelief* it seems I can only...
0
by: Keith | last post by:
The web.config setting <pages smartNavigation="true"/> doesn't seem to work for the validation controls. Perhaps because there is no postback. Is there a setting in the validation controls that...
2
by: william.oram | last post by:
I have a few controls on a basic form I'm working on that make use of postback: for example, click a checkbox to make Panel1 and its subcontrols visible. I've since added clientside 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: 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
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
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.