Mutiple user controls on page to fire same validation control

M

Martin

Hi,

I have a page with 4 web user controls on.
Each of these web user controls has some asp.net controls on that have
validation events attached to them.

Now because there are 4 seperate users controls I have 4 seperate validation
summaries, what I would like is to have only a single validation summary at
the top of the page, ie not in any user controls.

Is this possible and could somebody please give me some advice on how to
acheive it please.

cheers

martin.
 
J

James Doughty

I've done this and didn't really have to do anything, just put the
summary control on the page calling the 4 user control page. The the user
hits something that causes validation it should validate. Don't forget
that validation controls are being done in javascript, so it is client
side script and user controls aren't anything special once they are
transalated to html.

James Doughty
 
A

Angrez Singh

Hi,

You can write that javascript to some file lets say xyz.js and then
include this file on your page.

HTH,

Regards,
Angrez
 

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,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top