baseValidator.ErrorMessage is rendering between start & end tags instead of as an attribute

T

TS

I don't understand why this is so. why doesn't it render as an attribute of
the span tag?

thanks
 
S

Steven Cheng[MSFT]

Hi TS,

I've checked the Validator control's code via reflector and it seems it is
a simple control that use render method to output. There is no particular
setting on the "ErrorMessage" property, I think the rendering logic is hard
coded in it which make the property value as the default Inner html content.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 

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,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top