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

Validation only works sometimes

I've got a C# ASP.NET web form that fails to validate
under certain conditions. I have a radio button that
causes an AutoPostback that enables certain other elements
on the form. If I click that radio button, the validation
will work when I click Submit. However, if I enter the
page and never click that radio button then the page
submits as if there were no validation at all. I'm not
sure how that radio button fits into the picture but was
wondering if anyone else had seem something similar to
this?

Thanks in advance for any helpful ideas anyone may have.
Shane
Jul 19 '05 #1
2 2666
Try posting to microsoft.public.dotnet.framework.aspnet or some other
appropriate .net newsgroup. This one is all about "classic" ASP.

Ray at work

"Shane" <mi******************@hotmail.com> wrote in message
news:0c****************************@phx.gbl...
I've got a C# ASP.NET web form that fails to validate
under certain conditions. I have a radio button that
causes an AutoPostback that enables certain other elements
on the form. If I click that radio button, the validation
will work when I click Submit. However, if I enter the
page and never click that radio button then the page
submits as if there were no validation at all. I'm not
sure how that radio button fits into the picture but was
wondering if anyone else had seem something similar to
this?

Thanks in advance for any helpful ideas anyone may have.
Shane

Jul 19 '05 #2
Thanks Ray. Thanks for catching that. Shane
-----Original Message-----
Try posting to microsoft.public.dotnet.framework.aspnet or some otherappropriate .net newsgroup. This one is all about "classic" ASP.
Ray at work

"Shane" <mi******************@hotmail.com> wrote in messagenews:0c****************************@phx.gbl...
I've got a C# ASP.NET web form that fails to validate
under certain conditions. I have a radio button that
causes an AutoPostback that enables certain other elements on the form. If I click that radio button, the validation will work when I click Submit. However, if I enter the
page and never click that radio button then the page
submits as if there were no validation at all. I'm not
sure how that radio button fits into the picture but was
wondering if anyone else had seem something similar to
this?

Thanks in advance for any helpful ideas anyone may have.
Shane

.

Jul 19 '05 #3

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

Similar topics

1
by: Suzanne Murray | last post by:
Hi, I am trying to provide some simple validation using Javascript on my form. However at times the validation works and at others it doesn't and submits the form without any warnings even...
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: Simon | last post by:
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...
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...
7
by: Ryan Ternier | last post by:
We're running a site that has required field validation on the login page. It works fine on our development / test machines. However, when I upload this site to our live server i get this error. ...
2
by: justin.merth | last post by:
Howdy, I've got a webform which contains a usercontrol with several textboxes and appropriate requiredfield validators for each. the validation works correctly except when all of the fields appear...
5
by: Sun Jian | last post by:
Hi, I am trying to customize the asp.net validation to achieve the following: Upon submitting the form, client side validation will run, and it will stop at the first error detected. For...
3
by: Student | last post by:
Good evening, I create a three tier ASP.NET web application. How can I validate the form input data in the Business Logic Layer? Can anyone give me an example?
5
by: wolf_y | last post by:
My question is simply: under what conditions will empty tags of the form <MOM></MOM> pass schema validation? Of course, the mirror question is: under what conditions will empty tags fail...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.