473,573 Members | 4,141 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 1436
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
5294
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...
41
2595
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...
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...
2
3990
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...
2
2236
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 -...
5
2082
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
1545
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...
0
948
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
1587
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....
0
8215
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...
1
7800
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...
0
8086
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...
0
6432
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...
1
5605
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...
0
3737
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...
0
3743
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2227
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1048
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...

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.