Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / DataGrid / July 2004

Tip: Looking for answers? Try searching our database.

Validation in DataGrids

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Edward Bills - 22 Jul 2004 15:30 GMT
Hello,

I have a datagrid with an edit column that performs updates and another
command column that performs deletes.  I then added controls to the footer
template and use them to add a new record.  The problem I am having is that
when I try to use a validator for the add textbox in the footer the same
validator control tries to validate when the update button is clicked.  Is
there any way to turn of certain validator controls for certain commands.  I
know that there is the causes validation property but that turns all
validation off.  Any help would be appreciated.

Thanks
Peter Blum - 22 Jul 2004 18:21 GMT
Microsoft realizes that they missed this key concept: different submit
buttons going to different validators. They are fixed it with "validation
groups" in ASP.NET 2.0. Validation groups lets you associated a name between
a submit button and its validators.

I rewrote ASP.NET validation to address numerous limitations, including
validation groups, in Professional Validation And More
(http://www.peterblum.com/vam/home.aspx). In addition to supporting
validation groups, its 22 validators greatly expand what you can do with
validation, from the browsers it supports, to the UI it offers, to the rules
of validation. It helps you avoid writing custom code and hacks that are
used with Microsoft's validators.

--- Peter Blum
www.PeterBlum.com
Email: PLBlum@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

> Hello,
>
[quoted text clipped - 8 lines]
>
> Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.