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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top