开发者

Embedded website inside windows app

How can I have an embedded website inside a windows app and also have it so that the windows app would startup the web se开发者_如何学运维rver and go to the default page of the website?

Can I use the webdev server that comes with .NET framework? Or is there something better out there?


You can host full ASP.NET runtime inside pretty much any .NET application. See ApplicationHost:

Enables hosting of ASP.NET pages outside the Internet Information Services (IIS) application. This class enables the host to create application domains for processing ASP.NET requests.

To display a web page, you can drop a WebBrowser control onto your form, optionally provide an ObjectForScripting and you're all set.


You should be able to use the standard WebBrowser control to do what you want.


Cassini (the embedded web server) combined with the WebBrowser control is probably your best bet.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜