CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 8/5/2005 8:25:46 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 56 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
SomeNewTricks2
Asp.Net User
CheckBoxList Control8/5/2005 8:25:46 AM

0/0

Hello,

Is there a way to have a RequiredFieldValidator for CheckBoxList? I noticed that RequiredFieldValidator doesn't work with CheckBoxList, is there a way to have such a contol?

 

Thank you.

PLBlum
Asp.Net User
Re: CheckBoxList Control8/5/2005 3:13:46 PM

0/0

When one of the existing validators doesn't match your requirements, you either use a CustomValidator to write your own logic or you get a third party validator that works. (My Professional Validation And More includes 25 validators including the RequiredListValidator and SelectedIndexValidator, both which work on CheckBoxLists and RadioButtonLists)
--- Peter Blum
Creator of Professional Validation And More Suite, Peter's Date Package, and Peter's Polling Package
www.PeterBlum.com
SomeNewTricks2
Asp.Net User
Re: CheckBoxList Control8/5/2005 3:55:41 PM

0/0

Hi Sir:
Can you please give me a hint on how to build such a RequiredListValidator? I just need such utility, I cannot afford buying the whole package.

Thank you so much,
PLBlum
Asp.Net User
Re: CheckBoxList Control8/8/2005 4:24:28 PM

0/0

You need to learn about the CustomValidator. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolscustomvalidatorclasstopic.asp

Most of the work is building a method to detect the state of the RadioButtonList or CheckBoxList. These controls document that you use the SelectedIndex property to determine their state. If SelectedIndex is not equal to -1, it indicates a specific radiobutton or checkbox that is checked.
So your customvalidator will evaluate that SelectedIndex is not -1. If it is, your evaluation method will report IsValid is false.

FYI: While my Professional Validation And More Suite is $200, you can get its "VAM: Essential Validators" module for $50. It gives you 14 validators including my RequiredListValidator, and all of the enhancements I've created to the ASP.NET validation system.
--- Peter Blum
Creator of Professional Validation And More Suite, Peter's Date Package, and Peter's Polling Package
www.PeterBlum.com
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Programming ASP.NET: Building Web Applications and Services with ASP.NET 2.0 Authors: Jesse Liberty, Dan Hurwitz, Pages: 930, Published: 2005
ASP.NET 2.0 All-In-One Desk Reference For Dummies: all-in-one desk reference for dummies Authors: Doug Lowe, Jeff Cogswell, Ken Cox, Pages: 910, Published: 2006
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005

Web:
ASP.NET CheckBoxList Control The CheckBoxList control is used to create a multi-selection check box group. Each selectable item in a CheckBoxList control is defined by a ListItem ...
CodeToad - ASP.NET : The checkbox and checkboxlist control With the control it is possible to create them in groups, but unlike radio buttons, it isn't possible to restrict the user to selecting ...
CheckBoxList Web Server Control The CheckBoxList control creates a multiselection check box group that can be dynamically generated using data binding. To specify items that you want to ...
ASP.NET.4GuysFromRolla.com: Pre-Selecting Items in a CheckBoxList ... NET the CheckBoxList control allows you to create multiselection checkbox groups . The following markup shows the syntax for a sample CheckBoxList control, ...
CheckBoxList Control in ASP.NET « Rhonda Tipton’s WebLog Nov 24, 2006 ... NET CheckBoxList control is used to create a defined list of options in which a user can choose from. With this control, you can select one ...
ASP.NET CheckBox, CheckBoxList Control The CheckBoxList Web server control displays a number of checkboxes at once. This control provides a multi selection check box group that can be dynamically ...
WorldofASP.NET: Working with CheckBox List Control in ASP.NET ... Aug 13, 2008 ... The CheckBoxList control consists of a group of check boxes that actually provides a multi-selection checkbox with the capability of ...
Checkbox List Control Checkbox List Control. Tags: ASP.NET , Controls , 2003 , Beginning ... Checkbox List Control Duration: 9 Minutes, 43 Seconds Size: 2.32M ...
Checkbox List Reference GetValue, Retrieves the value of the CheckBox List control. Only the first element of ... Interface System.Web.UI.WebControls.CheckBoxList class is used. ...
CheckBoxList - aspnetcontroladapters - Google Code - Rendering ... Adapted content for the CheckBoxList control is available through the CheckBoxListAdapter or the CssCheckBoxList control. ...




Search This Site:










cookies not working

built-in function to reverse y to n and vice versa

virtualpathprovider without an .aspx file

if then, else question

system.io.file

moving to next record in an access database

creating own extension in .net

edit sitemap node

using registerstartup script in module.vb

extracting values from an arraylist

db driven video embedding

audio music live streaming

re: server.mappath question

using data in eventarg - best practice.

can't load the page in a browser

microsoft certification

3-tier architecture design - a few questions

page opens in vs.net- (odd error opening excel)

how to log out programatically using form-based authentication in asp.net 2.0

integrating with asp.net 2.0 membership, roles and forms authentication

how to create the sessions in asp.net

run process

vb.net code works but not c# code - please help

why some some server text boxes have yellow background color but some white background color?

when i used a stored procedure i get an error: failed to convert string to type guid

how to: read and write binary images

retrieving values

how to extract object attribute value which in arraylist?

(win2000 sp4 iis5 .net1.1) aspnet account

sql server 2005 ctp & visual web developer express

  Privacy | Contact Us
All Times Are GMT