I have a page that has gone through a lot of editing. It has many text
box and validator controls, and one compare validator just isn't working.
I have the control to validate set, and control to compare set, and the
page just behaves like the validator isn't there.
Can anyone give me any ideas on what I need to do to make this work? It
used to work and stopped, and I've even deleted and recreated both the
text control and the validator using both the same and new IDs but with
no luck. Help!
Matt 4 1874
Hi,
Maybe your "sumbit" controls are set to >> CausesValidation = False
Neven
"MattB" <so********@yahoo.com> wrote in message
news:3b*************@individual.net... I have a page that has gone through a lot of editing. It has many text box and validator controls, and one compare validator just isn't working. I have the control to validate set, and control to compare set, and the page just behaves like the validator isn't there. Can anyone give me any ideas on what I need to do to make this work? It used to work and stopped, and I've even deleted and recreated both the text control and the validator using both the same and new IDs but with no luck. Help!
Matt
Neven Klofutar wrote: Hi,
Maybe your "sumbit" controls are set to >> CausesValidation = False
Neven
"MattB" <so********@yahoo.com> wrote in message news:3b*************@individual.net...
I have a page that has gone through a lot of editing. It has many text box and validator controls, and one compare validator just isn't working. I have the control to validate set, and control to compare set, and the page just behaves like the validator isn't there. Can anyone give me any ideas on what I need to do to make this work? It used to work and stopped, and I've even deleted and recreated both the text control and the validator using both the same and new IDs but with no luck. Help!
Matt
Good thought, but all the other validators on the page fire (plus I
double-checked).
Any other ideas? It's also got Enabled=True BTW.
Matt
A CompareValidator will only fire is something is entered into the TextBox.
If you also require a value to be entered add a RequiredFieldValidator.
-Brock
DevelopMentor http://staff.develop.com/ballen I have a page that has gone through a lot of editing. It has many text box and validator controls, and one compare validator just isn't working. I have the control to validate set, and control to compare set, and the page just behaves like the validator isn't there. Can anyone give me any ideas on what I need to do to make this work? It used to work and stopped, and I've even deleted and recreated both the text control and the validator using both the same and new IDs but with no luck. Help! Matt
That was it (duh!). Thank you!
Matt
Brock Allen wrote: A CompareValidator will only fire is something is entered into the TextBox. If you also require a value to be entered add a RequiredFieldValidator.
-Brock DevelopMentor http://staff.develop.com/ballen I have a page that has gone through a lot of editing. It has many text box and validator controls, and one compare validator just isn't working. I have the control to validate set, and control to compare set, and the page just behaves like the validator isn't there. Can anyone give me any ideas on what I need to do to make this work? It used to work and stopped, and I've even deleted and recreated both the text control and the validator using both the same and new IDs but with no luck. Help! Matt This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: edi |
last post by:
Hi,
Are there any differences between CompareValidator.ControlToCompare and
CompareValidator.ControlToValidate?
For example if I have TextBox controls: TextBox1 and TextBox2 what are
the...
|
by: Sjaakie Helderhorst |
last post by:
Hi,
Somehow pushing an image-button doesn't trigger the CompareValidator,
resulting in errors when entering string characters.
Could someone please tell me what I did wrong?
Thanks in advance!...
|
by: Axel Dahmen |
last post by:
Hi,
I've got the same problem as described below. No answer found yet. Can
someone please help? (I'm using .NET 1.0 on my development machine and 1.1
on my webserver. Like Susanna, I only get...
|
by: Neo |
last post by:
I use CompareValidator to validate a date. But CompareValidator can only one
date format at one time. if the dateorder is "mdy", date format can only be
mdy even if date format is ymd. But users...
|
by: Joe |
last post by:
Hello,
I am new to asp.net. I have created a login page using dotnet. I am using
CompareValidator but noticed that when I click on View Source in the browser
I see the value assigned to...
|
by: Eric Maia |
last post by:
I have a textbox (StartDateTextBox) in a UserControl on my page, that
is supposed to have a date entered into it. I have a
RequiredFieldValidator that has its ControlToValidate property set to
the...
|
by: Ron Weldy |
last post by:
I want to have a optional field on a form that can be blank but if the user
enters something, it must be a number. I'm using a CompareValidator with the
datatype check but if I submit the form with...
|
by: R.A.M. |
last post by:
Hello,
(Sorry for my English...)
Could you help me please? I have a problem with CompareValidator
control which makes the load of my page infinitive. Here's the code:
Date of birth:...
|
by: R.A.M. |
last post by:
Hello,
I am learning ASP.NET 2.0 and I have a problem with CompareValidator
control. On .aspx page I have a control:
Date of birth: <asp:TextBox ID="BirthDate" runat="server"...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
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...
| |