User Controls & Validation

K

Kyle K.

Environment: Visual Studio 2005 + WinXP Pro SP2 + .NET 2.0

I am new to creating user controls and have a (hopefully) simple question.

I have a series of personal questions (first/last name, address, phone
number, etc.) that is repeated on several different pages. I pulled
these question out into a UserControl to make it easier to maintain, etc.

One problem... How do I specify validation logic for the controls
contained in the UserControl?

I currently have a Validation Summary (ValidationGroup = "Personal") at
the top to the UserControl and have a bunch of Validators defined on the
different fields (each with their ValidationGroup = "Personal" ). I then
created a test page that contained the UserControl, loaded it, and
clicked the 'submit' button I created (with CausesValidation = "true").
I do not receive any validation error messages despite the form being
empty and having several required fields.

Any ideas on how to resolve this issue? As I said, I am new to UserControls.

Thanks,

-={ Kyle }=-
 
K

Kyle K.

I still haven't figured this out. Can anyone be of assistance?

Could it be related to having the ViewState disabled?

-={ Kyle K }=-
 

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,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top