Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Open a desktop application from asp.net form button control?

Reply
Thread Tools

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

 
 
Kathy Burke
Guest
Posts: n/a
 
      12-01-2003
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!
 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      12-01-2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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!



 
Reply With Quote
 
 
 
 
Kathy Burke
Guest
Posts: n/a
 
      12-01-2003
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!
 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      12-01-2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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!



 
Reply With Quote
 
Kathy Burke
Guest
Posts: n/a
 
      12-01-2003
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!
 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      12-02-2003
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" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> 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!



 
Reply With Quote
 
Kathy Burke
Guest
Posts: n/a
 
      12-02-2003
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!
 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      12-02-2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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!



 
Reply With Quote
 
LeeMont86 LeeMont86 is offline
Junior Member
Join Date: Jul 2006
Posts: 1
 
      07-06-2006
I've found that as result of legacy integration of old asp apps and new asp.net apps, there is great need for the ability for launching windows apps from web apps - exactly my issue with a incredible short deadline to boot.

I'm at present attempting to print a dynamically database generated graphic to a printer. I was able to create a printer class that would be used by an asp.net web form only to learn by research that the asp.net page object destroyed before the asynchronous print operation could complete (something windows apps takes care of naturally). Anyway, to make a long story short, I eventually moved to breakin' off the printing operation to a separate activity by wrapping my print class in a windows class library and perfecting the database printing process to printer; hoping to eventually discover the 'magic' code to that would launch this windows app (my final printer class wrapper) to instantly trigger the printing process.

In short, I must send formally generated documents that users are not allowed to view to a printer from already developed asp and asp.net applications (like yesterday) on the company's intranet.

I would appreciate any help anyone can offer.

Many thanks in advance,

Jose.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: how to open a file in some application using Tkinter i am usingTKINTER to create GUI application i want to know how to open a worddocument in open office or any other applicatio Fredrik Lundh Python 1 01-09-2008 10:40 AM
PDF Button - Open a Desktop window via javascript george.stout@gmail.com Javascript 0 02-09-2006 01:53 PM
How to fake a button click for HTTP form button harleyman1974@gmail.com ASP .Net 2 11-21-2005 06:59 PM
Same Application with Web and Desktop Application Interface ASP .Net Security 2 10-19-2005 05:19 PM
JavaScript Access to Button in form tags (webcontrol or html button) Wes Weems ASP .Net 1 07-20-2003 05:27 AM



Advertisments