Hosting a web application within a windows form

G

Guest

Hi,
I wish to host a web application within a windows form.
I don't believe my requirement would be satisfied by just using the
WebBrowser control.
You see what i will need to do is to be able to pass data objects from the
windows host into the web application being hosted and then pass that data
back to the windows host application.

Can anyone give me a steer on this.

thanks

thanks.
 
K

Kevin Spencer

A web application is a server-side application. The "guts" of it are on the
web server. Only the client interface is in the browser. Therefore, if you
host the client interface in a Windows Forms application, the Windows Forms
application will have to talk to the web server in order to communicate with
the web application, not with the client browser.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP
 
M

Marc Gravell

WebBrowser does this; you can automate directly into the browser
object-model (Document.GetElementById() etc); to invoke backwards to
your app (perhaps via javasript) is a little more tricky - you need to
set an object for the ObjectForScripting, which becomes (IIRC)
"external" in javascript - i.e. if your object has a DoSomething()
method, the js can call external.DoSomething();

Marc
 

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