Home All Groups Group Topic Archive Search About

modify HTML in code behind

Author
6 Apr 2005 10:26 AM
philippe merrien
hello,

I would like to modify the content of  my html page from the code behind.
But i've got a problem...I know how to get the html from a spécific  control
(thanks to FindControl)  but what can i do to get all the all  HTML page
code?

thanks

Author
6 Apr 2005 11:05 AM
Cor Ligthert
Philippe,

I think that you would have to explain more what you mean with "all HTML
page code"
A HTML page is nothing more than a format, with in it (in the case of ASPX)
mostly a lot of Javascript. The Javascript code is processed at the client
side.

Cor
Author
6 Apr 2005 12:17 PM
philippe merrien
ok.

I work in a cms environment.
My aspx page is a template which contains an Htmlplaceholder.
This placeholder contains informations concerning daily cotation.
So I have to change informations in the htmlplaceholder each day.

You will say "why do u use a placeholder so?"....Because i'm obliged to use
this specific template with this specific placeholder..;o( .

Normally a placeholder is used for static information.I know.

So my idea was to modify the content of the page in the render method.To
modify the content of the page, I have to get the html stream.
I know how to do that for a particular control...For exemple the content of
my placeholder.

Ask me more informations if my request is not understandable ;o)

philippe







Show quoteHide quote
"Cor Ligthert" <notmyfirstn***@planet.nl> a écrit dans le message de
news:%238ZFLipOFHA.2288@TK2MSFTNGP10.phx.gbl...
> Philippe,
>
> I think that you would have to explain more what you mean with "all HTML
> page code"
> A HTML page is nothing more than a format, with in it (in the case of
ASPX)
> mostly a lot of Javascript. The Javascript code is processed at the client
> side.
>
> Cor
>
>
Author
6 Apr 2005 12:42 PM
Cor Ligthert
Philippe,

I find this one of the worst documentated parts of Net. However maybe is
this what you are looking for. (You have to go further on the pages to see
what it is). It is possible to get rid of that HTML, however I never found
any official documentation about that and I am myself in a way with that in
the try on error method.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebUIDataBinderClassEvalTopic.asp

Cor
Author
6 Apr 2005 1:10 PM
philippe merrien
Thanks a lot for your help.
But i think that my error is more linked to a CMS using...




"Cor Ligthert" <notmyfirstn***@planet.nl> a écrit dans le message de
news:ekFgeYqOFHA.3940@TK2MSFTNGP12.phx.gbl...
> Philippe,
>
> I find this one of the worst documentated parts of Net. However maybe is
> this what you are looking for. (You have to go further on the pages to see
> what it is). It is possible to get rid of that HTML, however I never found
> any official documentation about that and I am myself in a way with that
in
> the try on error method.
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebUIDataBinderClassEvalTopic.asp
Show quoteHide quote
>
> Cor
>
>