Re: Setting HiddenField .Value

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



Thanks.
Maybe you can help me solve my problem, in order to decrease the
number of times a user has to fetch data from the server, I'm saving
data in an hidden field, so when the user decides to display the new
data I'm using javascript to display it.

Do you have another idea how can I implement such a behavior ?

Thank you,
Efi


Peter wrote:
That's because the Xml control is specifically designed to render (as HTML)
the result of an XSLT Transform on an XmlDocument. You were talking about a
hidden form field. Two different animals.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net




"Efi Merdler" wrote:


Kevin Spencer כתב:
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


Thanks to both of you,
The Xml control does manage to output my xml as correct html, so why
it can and I can't (I sound like a little boy :-) )



.



Relevant Pages

  • Re: Setting HiddenField .Value
    ... "Efi Merdler" wrote: ... they are HtmlEncoded when you put the string into the Hidden form field. ... fully transformed html file. ... I'm setting the Value property of an hidden field control to have the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Setting HiddenField .Value
    ... "Efi Merdler" wrote: ... they are HtmlEncoded when you put the string into the Hidden form field. ... fully transformed html file. ... I'm setting the Value property of an hidden field control to have the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Setting HiddenField .Value
    ... available in the browser to use via script. ... they are HtmlEncoded when you put the string into the Hidden form field. ... fully transformed html file. ... I'm setting the Value property of an hidden field control to have the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Doubts regarding displaying XML data in WebApp and also DrillThrou
    ... HTML file and displays it. ... You can take a look at the code in the control to ... see that all it does is apply a XSLT stylesheet to the XML which generates ... To get the result of a drillthrough query, you must specify that the XMLA ...
    (microsoft.public.data.xmlanalysis)
  • Re: Setting HiddenField .Value
    ... or anywhere else in an HTML document except as element brackets. ... they are HtmlEncoded when you put the string into the Hidden form field. ... I'm setting the Value property of an hidden field control to have the ... The Xml control does manage to output my xml as correct html, ...
    (microsoft.public.dotnet.framework.aspnet)