473,395 Members | 1,647 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,395 software developers and data experts.

Why are my validators refusing to work?

Hi guys, this is really driving me crazy, any help appreciated.

using ASP.NET 2.0 in VS 2005 and reviewing with IE7.

I have some fields with validators attached to them. If I drag a summary
field onto my page everything works. If I then set each indiviual validator
visibility to false (so only the summary shows), all the validators stop
working.

What am I doing wrong here? They are all enabled but not visible.

Secondly, it seems that my required field validators are doing nothing, im
totally confused. Please help all.

Thank you!
Tarun
Dec 12 '06 #1
2 965
bpd
Based on my experience, visibility must be set to true on the validator
for it to work. If you
don't want TEXT to be displayed, then leave that property blank. The
ERROR MESSAGE property displays in the validation summary.
Tarun Mistry wrote:
Hi guys, this is really driving me crazy, any help appreciated.

using ASP.NET 2.0 in VS 2005 and reviewing with IE7.

I have some fields with validators attached to them. If I drag a summary
field onto my page everything works. If I then set each indiviual validator
visibility to false (so only the summary shows), all the validators stop
working.

What am I doing wrong here? They are all enabled but not visible.

Secondly, it seems that my required field validators are doing nothing, im
totally confused. Please help all.

Thank you!
Tarun
Dec 12 '06 #2
the Visible property controls whether a control is rendered. if you set
to false, there is no control to do the validation. you want to set the
Display instead.

-- bruce (sqlwork.com)

Tarun Mistry wrote:
Hi guys, this is really driving me crazy, any help appreciated.

using ASP.NET 2.0 in VS 2005 and reviewing with IE7.

I have some fields with validators attached to them. If I drag a summary
field onto my page everything works. If I then set each indiviual validator
visibility to false (so only the summary shows), all the validators stop
working.

What am I doing wrong here? They are all enabled but not visible.

Secondly, it seems that my required field validators are doing nothing, im
totally confused. Please help all.

Thank you!
Tarun

Dec 12 '06 #3

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

Similar topics

1
by: MonkeyBoy | last post by:
I am doing some some HTML manipulation in client-side script (IE5.x and IE6.x browsers only). Something like.. var tmpHTML = oTable.outerHTML // do something to the HTML her oTable.outerHTML =...
1
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...
0
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...
7
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...
3
by: rgparkins | last post by:
Hi I am currently having problems with Validators in a user control. I am creating a wizard sign-up process which have the allocated step (hyperlinks" at the top of the page. A user can also...
7
by: Adrian Parker | last post by:
Having a problem with validators. Because we want to only test whether the current field in a changed event is valid before we process the change code, I have tried to turn off all validators for...
8
by: ShaneFowlkes | last post by:
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...
4
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...
2
by: Alec MacLean | last post by:
Hi, I have a page using AJAX. The page has three modal popups that work fine when I don't have field validators in place. As soon as I put a validator in place, the popup "form" the validator...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.