Invoking an exe from a web page for Netscape

A

Abhijit

I am looking to invoke a windows application (which is an exe) from a web page which has been done in ASP .NET. Here's what i have done:

In the page load of the form, i added atribute to the button

string str3 = "C:\\\ABC\\\\AAB.exe";
Button3.Attributes.Add("onclick", "JAVASCRIPT:callExe('" + str3+ "');");

In the HTML for the aspx page in added following javascript code:

<script language=javascript>
function callExe(string)
{

var ws = new ActiveXObject("WScript.Shell");
ws.Run(string);
}
</script>

This works fine in IE browser after i changed the setting “Initialize and script ActiveX Controls not marked as safe†to Prompt from Enabled in Tools->Internet Options for the browser.

However, in netscape 7.1 browser, this does not work. The application does not open at all on clicking the button. Please help. Is there a way to make an exe open from netscape.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,099
Messages
2,570,626
Members
47,237
Latest member
David123

Latest Threads

Top