473,760 Members | 10,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1453
On Sun, 31 Oct 2004 12:17:18 -0000, "Simon"
<sh856531@micro softs_free_emai l_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
5338
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 from bit rot. Though the pages seem to display okay under IE and FF, I really think it's time for an under-the-hood cleaning. I recently received a copy of Molly Holzschlag's "Spring Into HTML and CSS," and in the first chapter, she makes a big...
41
2651
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 was really special about that site is that the validation service was available in Russian, German, Spanish and English. Now, I can't find this site anymore. I did search google. Do you know such site? What's its url? 2- Generally speaking, the...
1
247
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 page has a nav bar (actually a user control) along the side which also has a textbox for entering an OrderID, allowing simple searches from any page in the app. This navbar search textbox has a button associated with it which is disabled until the...
2
4002
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 IIS Server of my Workstation (Win XP) with a text box, button and required field validator, this works fine. If I create the same page on the IIS6 Windows 2003 Server the validation control doesn't stop the post. I've tried different browsers and...
2
2247
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 SessionUserControl.ascx - select or enter a course session CourseDetails.aspx - a form which contains just CourseUserControl CourseSessionDetails.aspx - a form which contains just SessionUserControl TrainingRequestDetails.aspx - a form which includes...
5
2093
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 the validation go off and hit save, it allows me to postback with the error. Am i doing something wrong? thanks, rodchar
4
1552
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 enable/disable control validation on the whole page, I found no way to do it on a per control basis! I mean, come on, I would like to keep the default validation control behavior but, on my HtmlEditControl I would like to test it myself to see if...
0
972
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 does the same thing as smartNavigation? Thanks, Keith
2
1595
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 serverside validation and suddenly postback is broken. Only if 'Submit' is clicked does the form update with changes that should have occured automatically. Page_Load() has nothing involving IsPostBack, and all applicable controls are set to...
0
9521
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10107
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
9945
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...
1
9900
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9765
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
8768
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...
1
7324
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6599
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();...
3
2733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.