Embedding a ClickOnce Application into a webpage

  • Thread starter Thread starter markoueis
  • Start date Start date
M

markoueis

Is there any way to embed a ClickOnce Application into the browser? I
love the way ClickOnce works, but the problem is I would like it to
display the windows form in the browser.

I could use a simple embedded dll, but then i lose the trust prompt
that ClickOnce offers.

Any ideas?

Mark
 
Mark,

Using ClickOnce in a browser is a bit self-defeating. The whole point
is to allow rich-client experience distributed over the web.

If you really want this, you are better off creating an MSI that when
installed, will install your control and set the security permissions on it
to grant the security permissions you need.

What are you gaining by placing the window in the browser?

If anything, why not embed a web browser control in your app (if you
really need dynamic content served up).
 
Well the ClickOnce application isn't really being used as a User
Interface. In my case its simply a process that does some simple packet
forwarding. I would like the user interface to remain the brower and my
webpage.

I understand what you are saying though. The purpose of ClickOnce is to
provide a rich interface. But never the less, is there anyway I could
get the browser (webpage, browser or javascript) communicate with my
ClickOnce application? This wouldn't seem to be too far fetched since
the ClickOnce application is indeed started by the browser. I know I
can pass startup parameters through the query string, but i need to
communicate with the ClickOnce application throughout the duration of
its life time.

Thanks

Mark
 
Mark,

I can't see how ClickOnce would be of any use to you except for setup
only. Basically, you would use click once to set the permissions for the
controls you are going to embed in the browser, and from that point on, you
would just go to the pages with the controls embedded in it. There is no
reason for click once after that.

Click once is a distribution/setup technology. The only use it can be
to you here is to change the permission sets when need be. Your ClickOnce
app would then open the browser and go to your site. The browser will be
responsible at that point for pulling the control down (which you have set
the permissions for already).
 
To run a windows Forms app inside the browser, it would need to be a
userControl, and you would need to use the <OBJECT...
tag arrangement in a web page, that points to the url of the control dll.

Whether this can actually be configured with ClickOnce, don't know.
Peter
 

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