How can we use validation controls in a master page. The master page has some server controls and some html controls. Now if we place the validations controls on master page would it effect the child page as well. I read about validation controls from http://jai-on-asp.blogspot.com/2009/12/validation-controls-in-aspnet.html and master pages from http://jai-on-asp.blogspot.com/2009/12/master-pages-in-aspnet-35.html Thanks in advance.
+1
A:
(Why do you want the validation in the master page?)
A better design choice is to put the validation controls together with the controls you want to validate.
If the controls are on the master page, then you can put validation controls in the master page. If they are on a page using the master page, put them there.
I suggest to make use of user controls. Group the actual control together with the validation control. This would give you much better control over your layout and validation. And as a bonus it's reusable.
Mikael Svenson
2010-01-23 08:39:38