.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 11th, 2003, 10:34 AM
campbel8 campbel8 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 24 campbel8 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 0
ASP.NET Validation Controls

I have a quick question regarding the validation controls in ASP.NET.

How much control over them do I have? Let's say for instance, that I have multiple text boxes. Each of the textboxes must be filled. However, If none of the text boxes are filled, I only want to post one error message, not an error message for each one that fails.

Also, if an error is detected, is it possible to somehow send a message to the client signaling that the page focus should be set to the field that has an error.

The validation controls seem very cool, however, they seem somewhat incomplete.

Thanks for your input.

Reply With Quote
  #2  
Old September 12th, 2003, 07:41 AM
kyler kyler is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: NY
Posts: 244 kyler User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 49 m 25 sec
Reputation Power: 6
You can use the <asp:ValidationSummary Runat="Server" /> control to combine all of the errors into one message. In the individual RequiredFieldValidator controlls, you can set the Display="None" so that you don't get an error for each one.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > ASP.NET Validation Controls


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT