By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,537 Members | 1,750 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,537 IT Pros & Developers. It's quick & easy.

Embedding a ClickOnce Application into a webpage

P: n/a
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

Nov 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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).

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<ma*******@hotmail.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
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

Nov 17 '05 #2

P: n/a
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

Nov 17 '05 #3

P: n/a
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).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<ma*******@hotmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
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

Nov 17 '05 #4

P: n/a
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

<ma*******@hotmail.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
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

Nov 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.