Programming Journal C#, Java, SQL and to a lesser extent HTML, CSS, XML, and regex. I made this so other programmers could benefit from my experience.

Monday, March 24, 2008

Running a client-side application using javascript in asp.net

Here is how to run a client-side application (.exe) using javascript in asp.net. I don't recommend it, because you probably have to lower your IE security (Tools -> Internet Options -> Security... and allow unsafe activeX).

<script language="javascript" type="text/javascript">
function btnSubmit_Click() {
var WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run("calc.exe");
}
</script>
<div>
<asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClientClick="btnSubmit_Click();" />
</div>

reference: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_11275014.html

4 comments:

jim said...

http://www.smartbargainsus.com/main/index.php

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=1

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=22

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=4

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=7

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=8

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=9

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=15

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=16

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=17

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=19

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=20

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=2

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=21

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=18

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=20

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=16


http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=78

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=63

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=65

jim said...

http://www.smartbargainsus.com/main/index.php

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=1

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=22

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=4

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=7

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=8

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=9

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=15

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=16

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=17

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=19

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=20

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=2

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=21

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=18

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=202

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=200

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=16

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=210

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=78

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=63

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=65

Anonymous said...

Oh throw that you so much for your enter at high-mindedness time. It helped me in my assignment. Thanks Alot


sialis otzyvy

Anonymous said...

This variant does not approach me.