[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webcontrols

Invoking an exe from a web page for Netscape

=?Utf-8?B?cm9kY2hhcg==?=

2/11/2004 12:41:00 PM

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.