Search Wiki:
Resource Page Description
ZNet Controls - Free Asp.net Controls - GridView with data grouping and indexing


Extended GridView for with DataGrouping and Record Indexing, RequiredFieldValidator for CheckBoxList, etc.

Grouping in GridView

When we start writing apps in asp.net, we always get hold off if we miss some functionality that we desperately need to roll out the solution. And the case is true always when we write code with Asp.Net's GridView control... When i started with one of the developments (Web Portal), i was running into issues since i dont have those expected functionalities available in the classic asp.net 2.0 controls. I was being asked by the business owners to have grouping in the listing while display data. The only option left off is to go for third party components like infragistics and i have to shed dollars from my pocket to have it done. Having said that, i started thinking.. "Why can't i have a simple control extended from the classic to have those required functionalites instead buying..?". There i started..And i became successfull in delivering the solution .Now the control is complete and i have few more ideas to be incorporated within the control, but in future. The control is free to use and distribute with no restrictions and royality. The current version has only GridView with grouping functionality based on DataKeys and record indexing, all with CSS styles....

To learn how to use the control, please visit http://znetcontrols.blogspot.com/2008/08/extended-gridview-for-aspnet-20-with.html


Required Field Validator web server control for ChekBoxList in ASP.Net

CheckBoxList Validation

The ASP.Net Validator controls shipped by Microsoft .Net Framework (from 1.0 till 3.5) are very helpful for developers to implement form control validations, even for a novice developer with little knowledge on Javascript. However, it does lacks validators for some controls which are desperately needed for our day to day coding, say for instance CheckBox, CheckBoxList, etc. This article describes how to develop your own validator controls to validate any .net server controls with your own logics. Or broadly, how to extend a BaseValidator class with custom functionality?

Required Field Validators are very popular among the .net validator controls. They works like a charm for Textbox, Dropdowns, FileUpload, etc. While writing any web form, say a feedback form or a registration form, we may have to use CheckBoxList controls to enable the user to ope multiple items from the list display. Here is the catch22. We dont have the validator...!. Instead, we should either write a lengthy code in javascript for client validation or use the Custom Validator Control to enable the validations in both the ends (server and client). User have another option to make use of partial rendering of pages for validation by using Ajax update panels control. However the later approach is troublesome and time consuming and is fully based on our host and network. Th built in validators are not allowed to be assigned for validation to any other controls like CheckBox since the ValidatedControlConverter will list only those webcontrols which can be validated. When creating your own validation control, you can enable the designer to display a list of controls that support validation controls.

To learn how to use the control, please visit http://znetcontrols.blogspot.com/2008/08/required-field-validator-for.html
Last edited Aug 14 2008 at 1:48 PM  by Ziyad6, version 12
Comments
BelieveTech wrote  May 7 at 7:07 PM  
NOTE about the Required Field Validator for CheckBoxLists: It has issues with multi-select options. If you select less OR MORE than the number of checkboxes that = valid, it shows invalid. This doesn't work if you can have a "select as many as you need to, but at least 1" situation.

Updating...
Page view tracker