Thanks in advance for the great book on ASP.NET. The information is well-organized and easy to follow. I've learned a lot so far.
I am trying to implement both Master pages and Custom Validation.
I followed the Try It Out on page 302. If the FORM element is in the content page (and NOT in the Master page) the custom validation works. However, if they FORM element is in the Master page (as suggested by the section on Master pages) the custom validation fails with the following error:
Code:
System.Web.HttpException was unhandled by user code
ErrorCode=-2147467259
Message="Control 'ctl00_cpBody_ValidationSummary1' of type 'ValidationSummary' must be placed inside a form tag with runat=server."
I'm just wondering what the solution would be for this situation. Is there a specific requirement that Master pages contain the FORM element? A little extra info on Master pages would be really helpful.
Thanks in advance.
Ted Stresen-Reuter
http://tedmasterweb.com