Monday, March 26, 2012

Html for control

Hi,

Is it possible to get the html for a control? ie. return to a string what
the RenderControl method would output.

Thanks

DonalIf it's your own control you should be able to get it from within the render
event.
If it's not your control then you should be able to call the RenderControl
method of the control to get its output.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Donal McWeeney" <donal_mcweeney@.NO-SP-AM.aimware.com> wrote in message
news:Oea88pykDHA.2676@.TK2MSFTNGP11.phx.gbl...
> Hi,
> Is it possible to get the html for a control? ie. return to a string what
> the RenderControl method would output.
> Thanks
> Donal
Thanks... think it kindof answers the question...

"Steve C. Orr [MVP, MCSD]" <Steve@.Orr.net> wrote in message
news:OeGaRJ0kDHA.1800@.TK2MSFTNGP10.phx.gbl...
> If it's your own control you should be able to get it from within the
render
> event.
> If it's not your control then you should be able to call the RenderControl
> method of the control to get its output.
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://Steve.Orr.net
> Hire top-notch developers at http://www.able-consulting.com
>
> "Donal McWeeney" <donal_mcweeney@.NO-SP-AM.aimware.com> wrote in message
> news:Oea88pykDHA.2676@.TK2MSFTNGP11.phx.gbl...
> > Hi,
> > Is it possible to get the html for a control? ie. return to a string
what
> > the RenderControl method would output.
> > Thanks
> > Donal

No comments:

Post a Comment