Launch an application

  • Thread starter Thread starter Mat
  • Start date Start date
Is it possible to launch a local application from an HTML or ASP.NET page?

Not really - imagine a malicious website which launched "format c:" at
random - OK, that's an extreme example, but you get the idea...

Having said that, it's possible to stream a file down to the browser in such
a way that it will open its associated application e.g. a Word document, an
Excel spreadsheet etc.

Alternatively, it would be possible to write an ActiveX control or a Java
applet which could do this - in fact, I've done the former several times for
enclosed intranet systems where the target browser is restricted to IE - but
there are severe security implications of doing this, and would be very
tricky on a public site.

Why do you need to do this, AAMOI?

What are you trying do do...?
 
Browser security settings are typically going to prevent this especially
if your page is not local itself.

--
Robbe Morris - 2004-2006 Microsoft MVP C#
I've mapped the database to .NET class properties and methods to
implement an multi-layered object oriented environment for your
data access layer. Thus, you should rarely ever have to type the words
SqlCommand, SqlDataAdapter, or SqlConnection again.
http://www.eggheadcafe.com/articles/adonet_source_code_generator.asp
 
Yes. You can do it with WSH (Windows Script Host) calls. But you will need
to convince the user to grant special security to your page.
 
Back
Top