Replacing HTML text before rendering

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
 
S

Steve C. Orr [MVP, MCSD]

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top