Validation being applied to user controls (2005)

M

Mantorok

Hi

I have a user control on a form and it contains a CustomerValidator which is
used only to validate controls contained within that user control.

However, when I submit on the page itself it validates that user control's
validator.

Is there any way to avoid this?

Thanks
Kev
 
S

S. Justin Gengo [MCP]

Kev,

I believe you can assign each validator to a validation group. Then set the
ValidationGroup property of any button that should trigger validation of the
given group.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 
M

Mantorok

S. Justin Gengo said:
Kev,

I believe you can assign each validator to a validation group. Then set
the ValidationGroup property of any button that should trigger validation
of the given group.

Thanks, that's better.

Kev
 

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

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top