Multiple buttons validate different controls????

  • Thread starter msnews.microsoft.com
  • Start date
M

msnews.microsoft.com

I have 2 datagrids. Each with an add record in the footer. How can I just
validate the fields in that datagrid without validating the fields in the
2nd datagrid. Any examples???
 
M

Marina

Sure it is.

He is telling you there is no way to automatically do what you want right
now.

So you have to write all the validation yourself.

Fetty said:
Not much help Steve
 
P

Peter Blum

Until you switch to ASP.NET 2.0, here are your choices:

1. Handle validation manually on the server side.
- Set the button's CausesValidation property to false.
- In the Click post back method, call Validate() on each validator. Then
test each validator's IsValid property for true before saving.

2. I wrote a replacement to Microsoft's validators called Professional
Validation And More (http://www.peterblum.com/vam/home.aspx). It's 25
validators support validation groups right now. I wrote it to address the
numerous limitations I found with Microsoft's validators, such as
client-side validation isn't supported on Mozilla-based browsers. I also
identified numerous enhancements that can make validation better, like
setting focus to the field with the error or changing that field's color. I
have attempted to build a feature rich system that avoids most of the custom
coding and hacks users face with Microsoft's validators.

--- Peter Blum
www.PeterBlum.com
Email: (e-mail address removed)
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top