Hello Vikram,
You could do something like this:
[C#]
using (StringWriter writer = new StringWriter())
{
HtmlTextWriter hw = new Html32TextWriter(writer);
myControl.RenderControl(hw);
}
writer.ToString() contains your controls HTML
Keep in mind that as Brock said, some controls alter their output based on
browser versions, so this may not help you in accomplishing your goals.
--
Matt Berther
http://www.mattberther.com How can i get html generated by a web server control in
the code behid page itself.
i want to store the html in some variable for some
purpose. is it possible.