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?

2 Answers 2

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Is there any solutions without http hosting involved?
0

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

1 Comment

Is there any solutions without browser involved? I just need the resulting HTML code, no more. To put it into the zip folder.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.