473,385 Members | 1,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how do I launch my c# application from a web page?

Hi there,

I'm very new to activex controls and c# programming.
I'm writing a c# application and I want it to be invoked when my users
click a button on a web page. Its an application with a GUI so the app
would come up and be running independent of the web browser (i.e. not
embeded in it). Also note, that this application is one that is already
installed
on my users' machines. How do I do this? Is there a reference on the
web with some good examples of this? I've looked through the msdn docs
and got a bit lost.
Thanks so much for the help,
Don

Jan 20 '07 #1
7 4644


<do********@hotmail.comwrote in message
news:11**********************@s34g2000cwa.googlegr oups.com...
Hi there,

I'm very new to activex controls and c# programming.
I'm writing a c# application and I want it to be invoked when my users
click a button on a web page. Its an application with a GUI so the app
would come up and be running independent of the web browser (i.e. not
embeded in it). Also note, that this application is one that is already
installed
on my users' machines. How do I do this? Is there a reference on the
web with some good examples of this? I've looked through the msdn docs
and got a bit lost.

Easy. Just publish it as a ClickOnce app to your web server.
ClickOnce
http://msdn2.microsoft.com/en-us/net.../aa497348.aspx

David

Jan 20 '07 #2
I believe ClickOnce is for application installation/deployment.

I'm not looking for an application "installation" solution, rather, I'm
looking for an application "invocation" solution.

I want users to be able to run the application, which is already
installed on their machine, from a web page. For example, when a button
on a web page is clicked, the application is invoked, running outside
of a browser window.

Don

David Browne wrote:
>
Easy. Just publish it as a ClickOnce app to your web server.
ClickOnce
http://msdn2.microsoft.com/en-us/net.../aa497348.aspx

David
Jan 20 '07 #3
| I'm not looking for an application "installation" solution, rather, I'm
| looking for an application "invocation" solution.

first time yes. After that, it will just start local. You also get the
benefit of seemless deploy of new versions.
Jan 20 '07 #4
William,

Hey, cool, I think ClickOnce IS what I need. I'll report back with my
progress.

Thanks,
Don

William Stacey [C# MVP] wrote:
| I'm not looking for an application "installation" solution, rather, I'm
| looking for an application "invocation" solution.

first time yes. After that, it will just start local. You also get the
benefit of seemless deploy of new versions.
Jan 20 '07 #5
Ok, so ClickOnce gives you the "publish.htm" file that users access to
install your application. But, how do you launch the application after
it has already been installed and the user re-visits the site?

Thanks,
Don
William Stacey [C# MVP] wrote:
| I'm not looking for an application "installation" solution, rather, I'm
| looking for an application "invocation" solution.

first time yes. After that, it will just start local. You also get the
benefit of seemless deploy of new versions.
Jan 21 '07 #6
You launch it with a hyperlink to the .application url.

Something like

http://servername/WindowsApp1.application

Look in the publish.htm, and you should see such a link.

David

<do********@hotmail.comwrote in message
news:11*********************@38g2000cwa.googlegrou ps.com...
Ok, so ClickOnce gives you the "publish.htm" file that users access to
install your application. But, how do you launch the application after
it has already been installed and the user re-visits the site?

Thanks,
Don
William Stacey [C# MVP] wrote:
>| I'm not looking for an application "installation" solution, rather, I'm
| looking for an application "invocation" solution.

first time yes. After that, it will just start local. You also get the
benefit of seemless deploy of new versions.
Jan 21 '07 #7
ClickOnce almost does what I want. However, there are a couple of
additional things I want to do with my application which I believe are
a challenge with a ClickOnce application.

1. The application is one which is to be purchased by my website's
users. So, before the application is installed, the user must purchase
the application.

2. The user must accept a user license before installing the
application.

3. The "lauch" button which would be located on the web page should
either launch the application for a valid licensed user, or, direct the
user to the software purchase page.

Thanks,
Don

David Browne wrote:
You launch it with a hyperlink to the .application url.

Something like

http://servername/WindowsApp1.application

Look in the publish.htm, and you should see such a link.

David

<do********@hotmail.comwrote in message
news:11*********************@38g2000cwa.googlegrou ps.com...
Ok, so ClickOnce gives you the "publish.htm" file that users access to
install your application. But, how do you launch the application after
it has already been installed and the user re-visits the site?

Thanks,
Don
William Stacey [C# MVP] wrote:
| I'm not looking for an application "installation" solution, rather, I'm
| looking for an application "invocation" solution.

first time yes. After that, it will just start local. You also get the
benefit of seemless deploy of new versions.
Jan 22 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Mike | last post by:
I am trying to write a web page where a person can click on a word document and MS Word is launched instead of the document being displayed in the IE browser. I have been able to launch MS Word but...
4
by: Caroline | last post by:
I'd like to launch an executable file from a web page. Basically, the user enters seven parameters and then clicks a button to generate a graph. The input is written to a file and then read by...
1
by: Michael Howes | last post by:
I have a c# windows form that talks to a web service on a server that then can talk to multiple "agents" on different machines using web service calls. I want to be able to launch an application...
5
by: GrantS | last post by:
Hi I am trying to use ShellExecute to launch an application to display a certain file. The variation on the theme is that I need to be able to specify the application to launch and not simply...
3
by: VB Programmer | last post by:
How can I launch a local winform application from a web page? (FYI: My goal is to have this winform be a "no touch deployment" application.) Thanks.
1
by: Jacob | last post by:
I have several web apps that I want to redirect to a new page, but have that page open in a new browser window. The basic scenario is that I have a CrystalReport object that gets created and...
4
by: Eric | last post by:
Hello, I need to allow a web page to launch an interactive program on the web server. For this example, I'd like to have the ASP.NET open notepad on the asp server, so the current logged-in...
4
by: Joe | last post by:
I created a CustomAction for this but I don't think I have it in the right place. I tried both Install and Commit but neither allow it to get to the final screen. Are there any examples of this...
2
by: cj | last post by:
Say I could say for a fact the program would work only with Outlook. Does outlook make any methods or properties available that would allow me to launch it and populate subject and body? How...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.