Re: Setting HiddenField .Value

Tech-Archive recommends: Fix windows errors by optimizing your registry



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 &lt; .

How can I change this behavior.
Thanks,
Efi



.



Relevant Pages

  • Re: HTML, embedded formats display problem
    ... for displaying an HTML file use the Webbrowser from the Microsoft ... > RichTextbox control, which works fine with RTF format, ... > but not HTML or embedded format. ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: oe6 reading mail showing as html raw source?
    ... > CWShredder, Ad-aware, Spybot, HijackThis ... > the Windows Profile is damaged, not OE or any identities, and, barring ... That control is, apparently, being fed from ... normal data and is being transcoded into HTML improperly. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re:
    syntax
    ... control categories Coward 9. ... "HTML", but my initial point is still true that there is no category ... and why your initial term "ASP.NET HTML Form Control" is incorrect). ... representation (and not accesible by the developer via server-side code). ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: syntax
    ... But you should not nitpick while posting mistaken information. ... "HTML" as I stated). ... "ASP.NET HTML Form Control". ... extremly limited server-side representation (and not accesible by the developer via server-side ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Opening an HTML page with VB6
    ... The DOS window's purpose is to show debug messages and only opens when the engine detects some errors eg in the HTML or CSS code of a page. ... It is a demo of how to embed the HtmLayout control into an application. ... Its intention is to give you a tool that can render Html *you* have *control* over. ...
    (microsoft.public.vb.general.discussion)