From: Jacob Andersen on 24 Jun 2010 17:22 Hi On a CustomValidator I have ErrorMessage="You cannot enter <, >, < or >". When CustomValidator.IsValid is false the error message is rendered as "You cannot enter <, >, < or >". How can I avoid this decoding? PS. Yes, I know the error message is stupid but it's needed in this case :-)
From: Harlan Messinger on 25 Jun 2010 13:21 Jacob Andersen wrote: > Hi > > On a CustomValidator I have ErrorMessage="You cannot enter <, >, < or > >". When CustomValidator.IsValid is false the error message is > rendered as "You cannot enter <, >, < or >". How can I avoid this > decoding? > > PS. Yes, I know the error message is stupid but it's needed in this case > :-) That's interesting. Well, try "You cannot enter <, >, &lt; or &gt;."
From: Jacob Andersen on 27 Jun 2010 13:34 In article <88k6t9FouhU1(a)mid.individual.net>, hmessinger.removethis(a)comcast.net says... > > On a CustomValidator I have ErrorMessage="You cannot enter <, >, < or > > >". When CustomValidator.IsValid is false the error message is > > rendered as "You cannot enter <, >, < or >". How can I avoid this > > decoding? > > > > PS. Yes, I know the error message is stupid but it's needed in this case > > :-) > > That's interesting. Well, try "You cannot enter <, >, &lt; or &gt;." Hi! Your suggestion renders: "You cannot enter <, >, < or >." Very strange! That means the ErrorMessage is double decoded. Does anyone have a solution or hack to this problem?
From: Sarath Babu S on 8 Jul 2010 02:15 Try this out: CustomValidator I have ErrorMessage="You cannot enter <, >, &lt; or &gt;" Sarath Babu S http://www.consultsarath.com/ "Jacob Andersen" <nej(a)tak.dk> wrote in message news:MPG.268deae5c481c358989680(a)msnews.microsoft.com... > Hi > > On a CustomValidator I have ErrorMessage="You cannot enter <, >, < or > >". When CustomValidator.IsValid is false the error message is > rendered as "You cannot enter <, >, < or >". How can I avoid this > decoding? > > PS. Yes, I know the error message is stupid but it's needed in this case > :-) >
|
Pages: 1 Prev: Site looks differently when published Next: Using an imagebutton and gridview checkbox colunm |