Replacing HTML text before rendering

  • Thread starter Thread starter OB
  • Start date Start date
O

OB

I need an example of how to modify HTML text before it is rendered by
any control. My objective is to modify certain properties of a control
like it's top position when this property is not publicly exposed.

Thanks
 
In the Page_Render event you can get a control's output with code like this:

SomeControl.RenderControl(writer)

Then you'll have its output in the HTMLTextWriter and you can do what you
wish with it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top