473,397 Members | 2,084 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,397 software developers and data experts.

Open a desktop application from asp.net form button control?

Hi,

I need (if possible) to open a desktop application (vb windows app) from
a button on an aspx form. How can this be done so that the app opens on
desktop not within the browser?

TIA for any help.

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
7 2325
What exactly are you trying to achieve here? In other words, what is the
requirement of your app?

--
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Kathy Burke" <ka**********@attbi.com> wrote in message
news:OT**************@TK2MSFTNGP11.phx.gbl...
Hi,

I need (if possible) to open a desktop application (vb windows app) from
a button on an aspx form. How can this be done so that the app opens on
desktop not within the browser?

TIA for any help.

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #2
Kevin, not sure how to explain it differently...but I'll try.

From within an aspx page (IE 5.5), I want to click on a button, which
would open a desktop application (shell?), but not interrupt my browser
app/session.

This is to allow users to use a separate vb windows app in parallel with
the asp.net app.

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
Requirements are what you want your program to accomplish, not how you want
it to accomplish it. What are the goals as far as what the app delivers to
the user? For example, what is this VB application, and what does it do for
the user?

--
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Kathy Burke" <ka**********@attbi.com> wrote in message
news:OB*************@TK2MSFTNGP09.phx.gbl...
Kevin, not sure how to explain it differently...but I'll try.

From within an aspx page (IE 5.5), I want to click on a button, which
would open a desktop application (shell?), but not interrupt my browser
app/session.

This is to allow users to use a separate vb windows app in parallel with
the asp.net app.

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #4
The VB app is simply a business requirement for data collection that can
NOT be integrated into my asp.net app (per corporate directive).
Therefore, I would like a button to open it from the asp.net app simply
for user convenience.

Why on earth would I need to describe what my entire app is designed for
when my question was quite simple: looking for code to open a windows
executable file from within an asp.net page.

From what I could find so far, it appears that shell may be what's
needed. Just hoping for an example from someone. That's all!

I found something posted but wasn't sure if this was the best way to go,
and/or how to write the cmd line to run a vbapp.exe file.

dim wsh
set wsh = createobject("WScript.Shell")
response.write wsh.run("cmd /c C:\WINNT\system32\ping.exe " & _
"www.aspfree.com > " & server.mappath("pingresults.txt"))

set wsh = nothing
response.redirect "pingresults.txt"

Thanks,

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #5
The reason I asked what your requirements are is that launching an
executable from a browser is usually a very bad idea, and by looking at your
requirements an alternative could possibly be arrived at, based upon the
requirements. Quite often the solution one arrives at initially can turn out
to be impractical, and a fresh look at the requirements can often provide
alternative and better solutions.

--
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Kathy Burke" <ka**********@attbi.com> wrote in message
news:#g**************@TK2MSFTNGP11.phx.gbl...
The VB app is simply a business requirement for data collection that can
NOT be integrated into my asp.net app (per corporate directive).
Therefore, I would like a button to open it from the asp.net app simply
for user convenience.

Why on earth would I need to describe what my entire app is designed for
when my question was quite simple: looking for code to open a windows
executable file from within an asp.net page.

From what I could find so far, it appears that shell may be what's
needed. Just hoping for an example from someone. That's all!

I found something posted but wasn't sure if this was the best way to go,
and/or how to write the cmd line to run a vbapp.exe file.

dim wsh
set wsh = createobject("WScript.Shell")
response.write wsh.run("cmd /c C:\WINNT\system32\ping.exe " & _
"www.aspfree.com > " & server.mappath("pingresults.txt"))

set wsh = nothing
response.redirect "pingresults.txt"

Thanks,

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #6
Sorry, Kevin, not trying to be difficult and I appreciate your help.

I did leave out (oops) that this is an Intranet app used in very
controlled circumstances. I can see now that your concern was probably
tied to the wider implications of Internet users, etc.

So, any advice on how to do what I want? Our users complain when they
have to "do" too much with the app, so we thought a button that will
open up the windows app needed in parallel would make it "easier" on
them.

Thanks,

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #7
The simplest method is to link to the executable file. The browser will
offer the user a choice of either saving or running the file. In either
case, it will be saved to the local machine. If they select to execute it,
it will run from the Temporary Internet Files folder.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Kathy Burke" <ka**********@attbi.com> wrote in message
news:Or**************@TK2MSFTNGP12.phx.gbl...
Sorry, Kevin, not trying to be difficult and I appreciate your help.

I did leave out (oops) that this is an Intranet app used in very
controlled circumstances. I can see now that your concern was probably
tied to the wider implications of Internet users, etc.

So, any advice on how to do what I want? Our users complain when they
have to "do" too much with the app, so we thought a button that will
open up the windows app needed in parallel would make it "easier" on
them.

Thanks,

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #8

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

Similar topics

4
by: Ricardo Correia | last post by:
Hello, Does anyone know how to open an application from a windows service?? For example, I have a windows service running and using a timer or something else I want to open Windows Calculator!...
2
by: Kristjan Sander | last post by:
Hello I am trying to write a #C windows desktop application that loads an ascx file contents (user control) from file, initiates it and then registers to database everything it finds. I tried that...
1
by: JLOI | last post by:
Hi All, I am trying to implement a dropdown-button control in C# which provides a list of actions. Many Microsoft applicaitons use this kind of control. One example is in the V.S IDE's file...
1
by: Kristjan Sander | last post by:
Hello I am trying to write a #C windows desktop application that loads an ascx file contents (user control) from file, initiates it and then registers to database everything it finds. I tried that...
2
by: Rashrashetta | last post by:
Hi all, I am a beginner in using ASP.net, and I want to ask: If I have two web-forms in the same project(Web-Application) and I want one of them to open the another via a button? How can I do...
3
by: ebbflow | last post by:
I've seen explainations on how to impersonate a non aspnet user when a web page is called within an web application, but I have a different impersonation issue. I have a windows desktop...
5
by: gregarican | last post by:
There is a C# CTI app I'm working on using Visual Studio 2005 at revision level 8.0.50727-7600. I need a couple of Windows Form Button controls to emulate line buttons on a telephone. So I went to...
0
by: Ahmedhussain | last post by:
Hi every one, Im working on a desktop application and I have to print facility in my software. More over when I click the submit button it should mail the form with the details or only the...
5
by: karthick001 | last post by:
Hello Folks, Calling a phone number in my phone on a button click from my desktop application(PC). This is my objective, all i know is creating desktop applications with some basic...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.