HighTechTalks DotNet Forums  

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

ASP.net Web Controls microsoft.public.dotnet.framework.aspnet.webcontrols


Discuss baseValidator.ErrorMessage is rendering between start & end tags instead of as an attribute in the ASP.net Web Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
TS
 
Posts: n/a

Default baseValidator.ErrorMessage is rendering between start & end tags instead of as an attribute - 12-18-2007 , 02:11 PM






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

thanks



Reply With Quote
  #2  
Old   
Steven Cheng[MSFT]
 
Posts: n/a

Default RE: baseValidator.ErrorMessage is rendering between start & end tags instead of as an attribute - 12-19-2007 , 02:03 AM






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.
--------------------
Quote:
From: "TS" <manofsteele1 (AT) nospam (DOT) nospam
Subject: baseValidator.ErrorMessage is rendering between start & end tags
instead of as an attribute
Date: Tue, 18 Dec 2007 13:11:09 -0600

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

thanks





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.