T
Thomas Bandt
Hi all.
I am filling some stuff into a PlaceHolder Control in my
WebForm, i.e. UserControls and WebControls. So far so good.
Now I want to manipulate the HTML output of this control
and its child controls. I want to parse the HTML code for
hyperlinks by regular expressions to extract them and
display them seperately in a print mode of a webpage
(as you can see it on
http://www.heise.de/english/newsticker/news/print/69361
(scroll down)).
I know a solution for parsing the whole output by a
HttpModule, but I don't want to parse all the contents.
So, how can I do this?
To simplify it - the challange is to change the Text of
Literal text = new Literal();
text.Text = "Hallo";
PH.Controls.Add(text);
without touching the Text property of the Control
before sending it to the client ;-)
Regards, Thomas
http://blog.thomasbandt.de/
I am filling some stuff into a PlaceHolder Control in my
WebForm, i.e. UserControls and WebControls. So far so good.
Now I want to manipulate the HTML output of this control
and its child controls. I want to parse the HTML code for
hyperlinks by regular expressions to extract them and
display them seperately in a print mode of a webpage
(as you can see it on
http://www.heise.de/english/newsticker/news/print/69361
(scroll down)).
I know a solution for parsing the whole output by a
HttpModule, but I don't want to parse all the contents.
So, how can I do this?
To simplify it - the challange is to change the Text of
Literal text = new Literal();
text.Text = "Hallo";
PH.Controls.Add(text);
without touching the Text property of the Control
before sending it to the client ;-)
Regards, Thomas
http://blog.thomasbandt.de/