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.
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.