By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,780 Members | 1,520 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,780 IT Pros & Developers. It's quick & easy.

Mutiple user controls on page to fire same validation control

P: n/a
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.
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"Martin" <ma****@hotmail.com> wrote in
news:e6**************@TK2MSFTNGP09.phx.gbl:
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.


Nov 19 '05 #2

P: n/a
Hi,

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

HTH,

Regards,
Angrez

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.