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

Discussion in 'ASP .Net Web Controls' started by TS, Dec 18, 2007.

  1. TS

    TS Guest

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

    thanks
     
    TS, Dec 18, 2007
    #1
    1. Advertising

  2. 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.
    --------------------
    >From: "TS" <>
    >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
    >
    >
    >
     
    Steven Cheng[MSFT], Dec 19, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Y3Jpeg==?=

    BaseValidator Custom Validator validating on a Repeater

    =?Utf-8?B?Y3Jpeg==?=, Aug 17, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    643
    =?Utf-8?B?Y3Jpeg==?=
    Aug 17, 2006
  2. Sri Prasad Tadimalla

    BaseValidator Display problem on postback

    Sri Prasad Tadimalla, Jan 4, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    312
    Sri Prasad Tadimalla
    Jan 4, 2007
  3. James
    Replies:
    2
    Views:
    181
    Teemu Keiski
    Dec 4, 2005
  4. jwwishart
    Replies:
    0
    Views:
    207
    jwwishart
    Sep 7, 2006
  5. Dusan Hlavaty
    Replies:
    2
    Views:
    181
    Robert Haken [MVP]
    Oct 25, 2006
Loading...

Share This Page