For some reason, my validator controls stopped working when a form posts.
They seems to work on fields that lose focus but if I submit a form with all
empty fields, not of the required validators catch it and this results in
runtime errors with my code.
It's real standard stuff using .NET 2 (VB). I've stopped and restarted IIS
several times and I even re-registered the NET service using this at the
command prompt:
c:\windows\micr osoft.net\frame work\v2.0.50727 >aspnet_regis s -i
The aspnet_client folder also does exist on the server.
Any ideas? 8 2114
Are you sure that your submit button's causes validation property is set to
true.
Also always check all inputs again in code behind or some other layer to
prevent errors.
Also what if the client turned JavaScript off. < Another problem.
what do you do then.
SA
"ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message
news:ui******** ******@TK2MSFTN GP04.phx.gbl... For some reason, my validator controls stopped working when a form posts. They seems to work on fields that lose focus but if I submit a form with all empty fields, not of the required validators catch it and this results in runtime errors with my code.
It's real standard stuff using .NET 2 (VB). I've stopped and restarted IIS several times and I even re-registered the NET service using this at the command prompt: c:\windows\micr osoft.net\frame work\v2.0.50727 >aspnet_regis s -i
The aspnet_client folder also does exist on the server.
Any ideas?
Yep. The button does cause validation. I typically do server side edits in
addition to the validators. But I still need and want to figure out why
they quit working.....
"MSDN" <sq**********@h otmail.com> wrote in message
news:OJ******** ******@TK2MSFTN GP03.phx.gbl... Are you sure that your submit button's causes validation property is set to true. Also always check all inputs again in code behind or some other layer to prevent errors. Also what if the client turned JavaScript off. < Another problem. what do you do then.
SA
"ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message news:ui******** ******@TK2MSFTN GP04.phx.gbl... For some reason, my validator controls stopped working when a form posts. They seems to work on fields that lose focus but if I submit a form with all empty fields, not of the required validators catch it and this results in runtime errors with my code.
It's real standard stuff using .NET 2 (VB). I've stopped and restarted IIS several times and I even re-registered the NET service using this at the command prompt: c:\windows\micr osoft.net\frame work\v2.0.50727 >aspnet_regis s -i
The aspnet_client folder also does exist on the server.
Any ideas?
Could it be SmartNavigation or some other JavaScript clashing with it.
Is JavaScript enabled on the client.
Does it work or not work from all clients.
SA
"ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. .. Yep. The button does cause validation. I typically do server side edits in addition to the validators. But I still need and want to figure out why they quit working..... "MSDN" <sq**********@h otmail.com> wrote in message news:OJ******** ******@TK2MSFTN GP03.phx.gbl... Are you sure that your submit button's causes validation property is set to true. Also always check all inputs again in code behind or some other layer to prevent errors. Also what if the client turned JavaScript off. < Another problem. what do you do then.
SA
"ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message news:ui******** ******@TK2MSFTN GP04.phx.gbl... For some reason, my validator controls stopped working when a form posts. They seems to work on fields that lose focus but if I submit a form with all empty fields, not of the required validators catch it and this results in runtime errors with my code.
It's real standard stuff using .NET 2 (VB). I've stopped and restarted IIS several times and I even re-registered the NET service using this at the command prompt: c:\windows\micr osoft.net\frame work\v2.0.50727 >aspnet_regis s -i
The aspnet_client folder also does exist on the server.
Any ideas?
Yes. I'm at a complete loss. JS is enabled. Same behavior on multiple
machines. I deleted and recreated the site in IIS. I cleared my IE cache.
It's as if my Page.IsValid = True is totally ignored......
"MSDN" <sq**********@h otmail.com> wrote in message
news:OG******** ******@TK2MSFTN GP02.phx.gbl... Could it be SmartNavigation or some other JavaScript clashing with it. Is JavaScript enabled on the client. Does it work or not work from all clients.
SA
"ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message news:%2******** ********@TK2MSF TNGP02.phx.gbl. .. Yep. The button does cause validation. I typically do server side edits in addition to the validators. But I still need and want to figure out why they quit working..... "MSDN" <sq**********@h otmail.com> wrote in message news:OJ******** ******@TK2MSFTN GP03.phx.gbl... Are you sure that your submit button's causes validation property is set to true. Also always check all inputs again in code behind or some other layer to prevent errors. Also what if the client turned JavaScript off. < Another problem. what do you do then.
SA
"ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message news:ui******** ******@TK2MSFTN GP04.phx.gbl... For some reason, my validator controls stopped working when a form posts. They seems to work on fields that lose focus but if I submit a form with all empty fields, not of the required validators catch it and this results in runtime errors with my code.
It's real standard stuff using .NET 2 (VB). I've stopped and restarted IIS several times and I even re-registered the NET service using this at the command prompt: c:\windows\micr osoft.net\frame work\v2.0.50727 >aspnet_regis s -i
The aspnet_client folder also does exist on the server.
Any ideas?
Very strange.
Can you create one simple page with just a textbox, required field Validator
and a button and see if it does the same thing in a new web project?
and see what happens.
SA
"ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. .. Yes. I'm at a complete loss. JS is enabled. Same behavior on multiple machines. I deleted and recreated the site in IIS. I cleared my IE cache. It's as if my Page.IsValid = True is totally ignored......
"MSDN" <sq**********@h otmail.com> wrote in message news:OG******** ******@TK2MSFTN GP02.phx.gbl... Could it be SmartNavigation or some other JavaScript clashing with it. Is JavaScript enabled on the client. Does it work or not work from all clients.
SA
"ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message news:%2******** ********@TK2MSF TNGP02.phx.gbl. .. Yep. The button does cause validation. I typically do server side edits in addition to the validators. But I still need and want to figure out why they quit working..... "MSDN" <sq**********@h otmail.com> wrote in message news:OJ******** ******@TK2MSFTN GP03.phx.gbl...
Are you sure that your submit button's causes validation property is set to true. Also always check all inputs again in code behind or some other layer to prevent errors. Also what if the client turned JavaScript off. < Another problem. what do you do then.
SA
"ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message news:ui******** ******@TK2MSFTN GP04.phx.gbl... > For some reason, my validator controls stopped working when a form > posts. They seems to work on fields that lose focus but if I submit a > form with all empty fields, not of the required validators catch it > and this results in runtime errors with my code. > > It's real standard stuff using .NET 2 (VB). I've stopped and > restarted IIS several times and I even re-registered the NET service > using this at the command prompt: > c:\windows\micr osoft.net\frame work\v2.0.50727 >aspnet_regis s -i > > The aspnet_client folder also does exist on the server. > > Any ideas? > > >
very very strange.
I recreated one of the RequiredValidat ors (1 of 10) and that one new one
works. The other nine still don't. What's even stranger is that the other
types like the Range and Expression validators still work. I guess I'll
recreate all of the Requireds......
"MSDN" <sq**********@h otmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. .. Very strange. Can you create one simple page with just a textbox, required field Validator and a button and see if it does the same thing in a new web project? and see what happens.
SA
"ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message news:%2******** ********@TK2MSF TNGP03.phx.gbl. .. Yes. I'm at a complete loss. JS is enabled. Same behavior on multiple machines. I deleted and recreated the site in IIS. I cleared my IE cache. It's as if my Page.IsValid = True is totally ignored......
"MSDN" <sq**********@h otmail.com> wrote in message news:OG******** ******@TK2MSFTN GP02.phx.gbl... Could it be SmartNavigation or some other JavaScript clashing with it. Is JavaScript enabled on the client. Does it work or not work from all clients.
SA
"ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message news:%2******** ********@TK2MSF TNGP02.phx.gbl. .. Yep. The button does cause validation. I typically do server side edits in addition to the validators. But I still need and want to figure out why they quit working..... "MSDN" <sq**********@h otmail.com> wrote in message news:OJ******** ******@TK2MSFTN GP03.phx.gbl... > > Are you sure that your submit button's causes validation property is > set to true. > Also always check all inputs again in code behind or some other layer > to prevent errors. > Also what if the client turned JavaScript off. < Another problem. > what do you do then. > > SA > > "ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message > news:ui******** ******@TK2MSFTN GP04.phx.gbl... >> For some reason, my validator controls stopped working when a form >> posts. They seems to work on fields that lose focus but if I submit a >> form with all empty fields, not of the required validators catch it >> and this results in runtime errors with my code. >> >> It's real standard stuff using .NET 2 (VB). I've stopped and >> restarted IIS several times and I even re-registered the NET service >> using this at the command prompt: >> c:\windows\micr osoft.net\frame work\v2.0.50727 >aspnet_regis s -i >> >> The aspnet_client folder also does exist on the server. >> >> Any ideas? >> >> >> > >
[slaps forehead!!]
Some how, all of the existing ones were set to enabled=false!
D'oh!. I don't know how this happened.....oh well.
Sorry and thanks.
"ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message
news:Od******** ******@TK2MSFTN GP05.phx.gbl... very very strange.
I recreated one of the RequiredValidat ors (1 of 10) and that one new one works. The other nine still don't. What's even stranger is that the other types like the Range and Expression validators still work. I guess I'll recreate all of the Requireds...... "MSDN" <sq**********@h otmail.com> wrote in message news:%2******** ********@TK2MSF TNGP04.phx.gbl. .. Very strange. Can you create one simple page with just a textbox, required field Validator and a button and see if it does the same thing in a new web project? and see what happens.
SA
"ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message news:%2******** ********@TK2MSF TNGP03.phx.gbl. .. Yes. I'm at a complete loss. JS is enabled. Same behavior on multiple machines. I deleted and recreated the site in IIS. I cleared my IE cache. It's as if my Page.IsValid = True is totally ignored......
"MSDN" <sq**********@h otmail.com> wrote in message news:OG******** ******@TK2MSFTN GP02.phx.gbl... Could it be SmartNavigation or some other JavaScript clashing with it. Is JavaScript enabled on the client. Does it work or not work from all clients.
SA
"ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message news:%2******** ********@TK2MSF TNGP02.phx.gbl. .. > Yep. The button does cause validation. I typically do server side > edits in addition to the validators. But I still need and want to > figure out why they quit working..... > > > > "MSDN" <sq**********@h otmail.com> wrote in message > news:OJ******** ******@TK2MSFTN GP03.phx.gbl... >> >> Are you sure that your submit button's causes validation property is >> set to true. >> Also always check all inputs again in code behind or some other layer >> to prevent errors. >> Also what if the client turned JavaScript off. < Another problem. >> what do you do then. >> >> SA >> >> "ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message >> news:ui******** ******@TK2MSFTN GP04.phx.gbl... >>> For some reason, my validator controls stopped working when a form >>> posts. They seems to work on fields that lose focus but if I submit >>> a form with all empty fields, not of the required validators catch >>> it and this results in runtime errors with my code. >>> >>> It's real standard stuff using .NET 2 (VB). I've stopped and >>> restarted IIS several times and I even re-registered the NET service >>> using this at the command prompt: >>> c:\windows\micr osoft.net\frame work\v2.0.50727 >aspnet_regis s -i >>> >>> The aspnet_client folder also does exist on the server. >>> >>> Any ideas? >>> >>> >>> >> >> > >
Glad to hear that you figured it out.
SA
"ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message
news:uq******** ******@TK2MSFTN GP05.phx.gbl... [slaps forehead!!]
Some how, all of the existing ones were set to enabled=false!
D'oh!. I don't know how this happened.....oh well.
Sorry and thanks.
"ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message news:Od******** ******@TK2MSFTN GP05.phx.gbl... very very strange.
I recreated one of the RequiredValidat ors (1 of 10) and that one new one works. The other nine still don't. What's even stranger is that the other types like the Range and Expression validators still work. I guess I'll recreate all of the Requireds...... "MSDN" <sq**********@h otmail.com> wrote in message news:%2******** ********@TK2MSF TNGP04.phx.gbl. .. Very strange. Can you create one simple page with just a textbox, required field Validator and a button and see if it does the same thing in a new web project? and see what happens.
SA
"ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message news:%2******** ********@TK2MSF TNGP03.phx.gbl. .. Yes. I'm at a complete loss. JS is enabled. Same behavior on multiple machines. I deleted and recreated the site in IIS. I cleared my IE cache. It's as if my Page.IsValid = True is totally ignored......
"MSDN" <sq**********@h otmail.com> wrote in message news:OG******** ******@TK2MSFTN GP02.phx.gbl... > Could it be SmartNavigation or some other JavaScript clashing with it. > Is JavaScript enabled on the client. > Does it work or not work from all clients. > > SA > > > "ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message > news:%2******** ********@TK2MSF TNGP02.phx.gbl. .. >> Yep. The button does cause validation. I typically do server side >> edits in addition to the validators. But I still need and want to >> figure out why they quit working..... >> >> >> >> "MSDN" <sq**********@h otmail.com> wrote in message >> news:OJ******** ******@TK2MSFTN GP03.phx.gbl... >>> >>> Are you sure that your submit button's causes validation property is >>> set to true. >>> Also always check all inputs again in code behind or some other >>> layer to prevent errors. >>> Also what if the client turned JavaScript off. < Another problem. >>> what do you do then. >>> >>> SA >>> >>> "ShaneFowlk es" <sh********** @h-o-t-m-a-i-l.com> wrote in message >>> news:ui******** ******@TK2MSFTN GP04.phx.gbl... >>>> For some reason, my validator controls stopped working when a form >>>> posts. They seems to work on fields that lose focus but if I submit >>>> a form with all empty fields, not of the required validators catch >>>> it and this results in runtime errors with my code. >>>> >>>> It's real standard stuff using .NET 2 (VB). I've stopped and >>>> restarted IIS several times and I even re-registered the NET >>>> service using this at the command prompt: >>>> c:\windows\micr osoft.net\frame work\v2.0.50727 >aspnet_regis s -i >>>> >>>> The aspnet_client folder also does exist on the server. >>>> >>>> Any ideas? >>>> >>>> >>>> >>> >>> >> >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tom Pearson |
last post by:
I create controls and validators dynamically dependent on data at runtime.
I create the control then the relevant validator(s) for it assigning the Control.ID as the control to validate.
These controls and validators are then added to a table for display to the user.
This code did seem to work originally, but now does not amd I am stumped as to why. There have been some code
changes, but not to the methods below and I have pretty much...
|
by: angus |
last post by:
Dear all,
I have 5 textboxes, and 2 buttons in a webform.
1-3 textboxes would be validated by 3 Required Field Validators if button 1
is click;
4-5 textboxes would be validated by 2 Required Field Validators if button 2
is click.
I have found whether i click button 1 or button 2, textboxes 1-5 will be
|
by: tshad |
last post by:
Is there a way to tell the validators to not fire if one of the validators
fails the input?
For example:
In the following code, if someone doesn't enter anything in the field, I
should get the message " A password must be entered".
I am also getting the message that I need " 1 numeric", "the passwords don't
match" and "I need from 6 - 20 characters".
|
by: Lars Netzel |
last post by:
Hi
How do I validate a CheckBox with a formvalidator from ASP.NET ? I can't
find anyway to do it and I need the look of this validation to look like the
rest of the textbox validators on the form (which are using
RequiredFieldValidators). Please help!
Best Regards
/Lars
|
by: Darrel |
last post by:
I noticed this nice new feature in 2.0:
a.. Validation Groups - Validation groups allow multiple forms on a page to
be separately validated.
Alas, I'm using 1.1 on a project at the moment and need to do exactly that.
Any best-method way to handle that with 1.1?
I have one ASP.net form on the page, but two seperate sets of fields I want
| |
by: paul |
last post by:
I have a simple test page which uses 2 views within a multiview.
In each view there is a textbox with a requiredfield validator.
When I click a button the validator fires for the view I'm on -
however if in the OnClick event of the button I check the validator on
the other view using the (Validators collection) it returns true - even
though it validate as false!
Surely this is a .net bug?
|
by: Torsten Munkelt |
last post by:
Hi,
I want to validate an XML document applying a
combination of RELAX NG and Schematron. I have
not found an appropriate validator. Would you
please send me links to such validators. I would
like to easily access it from within Java and
from console. Thank you very much for your answers
in advance.
|
by: shapper |
last post by:
Hello,
Is there any way to make ASP.NET validators to display as block?
I tried everything I could think off with skins, css, etc.
I really don't know what else to try.
Shouldn't this be easy?
The objective is "only" to display the validators message in a single
line.
|
by: Madhur |
last post by:
Hello All
I am learning how to use ASP.NET Validators and would appreciate if someone
could provide me with guidance.
I have written very simple ASPX page below with a Dropdown list, a button.
If a value of 3 is selected inside dropdown list , I add two text boxes each
attached with validators.
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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();...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |