Rendering an aspx form output

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?
 
M

Masudur

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
 

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

Top