.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.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 ASP Free Forums Sponsor:
  #1  
Old March 13th, 2002, 09:57 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 23
RequiredFieldValidator + CheckBox ?

<i><b>Originally posted by : Simon (simon.stafford@peakhour.com.au)</b></i><br />Is it possible to use a RequiredFieldValidator to validate a CheckBox there-by making the checking of it mandatory for submission of the form?<br /><br />I've tried adding a RequiredFieldValidator for the checkbox and all i get is an error message: Control 'deleteDisclaimerCheckbox' referenced by the ControlToValidate property of 'deleteDisclaimerValidator' cannot be validated.<br /><br />Here's the code snippet...<br /><br /><asp:CheckBox ID="deleteDisclaimerCheckbox" runat="server" /><br /><asp:RequiredFieldValidator ID="deleteDisclaimerValidator" ControlToValidate="deleteDisclaimerCheckbox"<br />Runat="server" /><br /><br />

Reply With Quote
  #2  
Old March 15th, 2002, 07:50 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 23
<i><b>Originally posted by : </b></i><br />the value of A checkbox is "TRUE" when it is checked or "FALSE" when it is unchecked. So why you need to use a requiredfieldvalidator to validate it?<br /><br /><br />------------<br />Simon at 3/13/2002 6:57:04 PM<br /><br />Is it possible to use a RequiredFieldValidator to validate a CheckBox there-by making the checking of it mandatory for submission of the form?<br /><br />I've tried adding a RequiredFieldValidator for the checkbox and all i get is an error message: Control 'deleteDisclaimerCheckbox' referenced by the ControlToValidate property of 'deleteDisclaimerValidator' cannot be validated.<br /><br />Here's the code snippet...<br /><br /><asp:CheckBox ID="deleteDisclaimerCheckbox" runat="server" /><br /><asp:RequiredFieldValidator ID="deleteDisclaimerValidator" ControlToValidate="deleteDisclaimerCheckbox"<br />Runat="server" /><br /><br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > RequiredFieldValidator + CheckBox ?


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 6 hosted by Hostway
Stay green...Green IT