0

I am running the executable application (a WinForms one) and I have faced the need to render several HTML pages (kind of "active" - it consumes the model and produces the HTML code of the whole page).

I am looking to the referencing the MVC or ASP.NET project. What is the best way to use these (or maybe other tools; if so, they what are they?) projects to render raw HTML code from the model and some sort of View Page?

AgentFire
  • 8,944
  • 8
  • 43
  • 90

2 Answers2

2

See the following SO question about hosting ASP.Net in WinForms projects - its entirely doable!

Hosting ASP.NET within my application

In reply to AgentFires comment about doing it without a http host involved (which Im assuming he means a web server), try these two articles from Rick Strahl about hosting the ASP.Net runtime directly.

http://www.west-wind.com/presentations/aspnetruntime/aspnetruntime.asp

http://www.west-wind.com/weblog/posts/2005/Jul/20/AspNET-Runtime-Hosting-Update

They are fairly old, but they should get you started.

Community
  • 1
  • 1
0

If your are getting a html string back, then you can injec that html code into the browser control

JohnnBlade
  • 4,261
  • 1
  • 21
  • 22
  • Is there any solutions without browser involved? I just need the resulting HTML code, no more. To put it into the zip folder. – AgentFire Jul 16 '12 at 09:20