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!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" <kathyburke40@.attbi.com> wrote in message
news:OTEYRMEuDHA.3256@.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!
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!
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" <kathyburke40@.attbi.com> wrote in message
news:OBHQaoEuDHA.684@.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!
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!
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" <kathyburke40@.attbi.com> wrote in message
news:#gTES2FuDHA.3256@.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!
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!
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" <kathyburke40@.attbi.com> wrote in message
news:Or0KHBPuDHA.1060@.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!
0 comments:
Post a Comment