Rendering an aspx form output

  • Thread starter Thread starter PokerMan
  • Start date Start date
P

PokerMan

Hi guys

I want to use the output of an aspx form and render it to screen as a
'preview' of the page.

With an html file its easy but obviously an aspx page has to be run, and
then the finished html generated is what i then want.

How do i do this in .net 2?
 
Hi guys

I want to use the output of an aspx form and render it to screen as a
'preview' of the page.

With an html file its easy but obviously an aspx page has to be run, and
then the finished html generated is what i then want.

How do i do this in .net 2?


hi...


you can take out the html from your page and then dump in some place
and then show it to user...
System.Text.StringBuilder sb = new System.Text.StringBuilder();
System.IO.StringWriter swriter = new System.IO.StringWriter(sb);
HtmlTextWriter hwriter = new HtmlTextWriter(swriter);
this.FormView1.RenderControl(hwriter);
string outputstring = sb.ToString();

in this way you can get the generated html...

www.snap.com have a tool to show website preview for the links... if
they can do why you can't do it...

Thanks
Md. Masudur Rahman (Munna)
kaz Software Ltd.
www.kaz.com.bd
http://munnacs.110mb.com
 
Back
Top