Re: Setting HiddenField .Value
- From: "Kevin Spencer" <unclechutney@xxxxxxxxxxxx>
- Date: Thu, 3 May 2007 11:25:59 -0400
You can't. The '<' and '>' characters are not legal values in a form field,
or anywhere else in an HTML document except as element brackets. That is why
they are HtmlEncoded when you put the string into the Hidden form field.
--
HTH,
Kevin Spencer
Microsoft MVP
Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
"Efi Merdler" <fooshm@xxxxxxxxx> wrote in message
news:1178203524.238623.217410@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
In my code I'm doing some xml transformation, at the end I receive a
fully transformed html file.
I'm setting the Value property of an hidden field control to have the
content of this html file.
In the debugger I can see that the control contains the value
correctly, however when the page is displayed in a browser all <
symbols are replaced by < .
How can I change this behavior.
Thanks,
Efi
.
- Follow-Ups:
- Re: Setting HiddenField .Value
- From: Efi Merdler
- Re: Setting HiddenField .Value
- References:
- Setting HiddenField .Value
- From: Efi Merdler
- Setting HiddenField .Value
- Prev by Date: Re: Setting HiddenField .Value
- Next by Date: Re: Intermittent http-400 Errors
- Previous by thread: Re: Setting HiddenField .Value
- Next by thread: Re: Setting HiddenField .Value
- Index(es):
Relevant Pages
|