Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to execute Local Application in ASP.NET

Posted on 2008-10-23
2
Medium Priority
?
555 Views
Last Modified: 2013-11-07
Hi All

I created an ASP.NET Web Application for my Client.  Now my client ask me to put a Link in the web site to open winword.exe directly from the browser.   But I don't think whether it is possible to call a local exe application from the browser.  

It may be possible with client side Java Script???  

Thanks
Sundar
0
Comment
Question by:sundar_amu
2 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 1000 total points
ID: 22783775
All ASP.NET code runs on the server. When you run the app on your localhost, you're sitting at the server and can see the VB program run. When another user visits the page from his own PC, the VB program still runs, but it does on the server so the user can't see it. There's no way to launch an executable on the client PC from ASP.NET server-side code.

You have a chance that it will run if you use javascript (but no certainty because of security reasons).
See this thread for more info: http://bytes.com/forum/thread92803.html
0
 
LVL 13

Expert Comment

by:TechTiger007
ID: 22783788
When you say "put a link in website to open winword.exe directly from browser", are you trying to open a word document  in winword in browser?
If that is the case then use the code below. This will open the file from web server in the browser
http://www.xefteri.com/articles/show.cfm?id=8
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Screencast - Getting to Know the Pipeline
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question