How to Render a Webform in Memory?

  • Thread starter Thread starter Sushi
  • Start date Start date
S

Sushi

Hi.

I need to render a webform in memory to sent it by email, without a
http request (on Winforms, by example...).
How can I do this?

Thanks.
 
Off the top of my head, you can override the Render method which
contains a HtmlTextWriter output parameter: Make a call to the
base.Render(output): Then read the contents of the HtmlTextWriter and
send that off in an e-mail.

-Rick
 

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

Back
Top