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 }=-
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 }=-