pruebens Posted November 21, 2002 Posted November 21, 2002 I have a webform with a clickable button.....what I want to do is that when someone clicks on the button it fires off an executable from a network path. First is this possible? And if so how do I do that? (I'm a n00b) Quote
*Gurus* divil Posted November 21, 2002 *Gurus* Posted November 21, 2002 You won't be running an executable on the client machine when they click a button in their browser. That would be quite a security risk. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
pruebens Posted November 21, 2002 Author Posted November 21, 2002 Well this is on a Intranet site so that actually would b emy intent. How else should I call this executable then? Quote
*Gurus* Derek Stone Posted November 21, 2002 *Gurus* Posted November 21, 2002 You'd have to have the user download and execute it. Quote Posting Guidelines
pruebens Posted November 22, 2002 Author Posted November 22, 2002 thought of that but this is actually something that we don't want the user to be able to run afterwards. it's pretty much a run ounce kida thing. Quote
Moderators Robby Posted November 22, 2002 Moderators Posted November 22, 2002 This " run ounce kida thing " is not considered safe. Imagine what some web sites could do to our machines. ugh!!! Quote Visit...Bassic Software
pruebens Posted November 22, 2002 Author Posted November 22, 2002 Yes I know but this is for an internal application and will never see the outside world. And no it's NOT a virus. Quote
Moderators Robby Posted November 22, 2002 Moderators Posted November 22, 2002 No one said it was a virus. I just said...'Imagine what some web sites could do to our machines' Quote Visit...Bassic Software
pruebens Posted November 22, 2002 Author Posted November 22, 2002 I understand your point.........and I was being sarcastic. Sorry. Not trying to ruffle feathers. Quote
*Gurus* Derek Stone Posted November 22, 2002 *Gurus* Posted November 22, 2002 The point is you can't do this with the current technologies. In .NET you can create a stub-application that loads the rest of itself from a network location, however you still need the user to launch the stub executable. That's the closest you're going to get. Quote Posting Guidelines
pruebens Posted November 22, 2002 Author Posted November 22, 2002 Okay it makes sense..........but being that I'm such a n00b........HOW do you do that or at least can you recommend a good tutorial? Quote
*Gurus* Derek Stone Posted November 23, 2002 *Gurus* Posted November 23, 2002 Use the LoadFrom method of the System.Reflection.Assembly class. With this you can download the class library that contains your main application logic. The whole process is amazingly simple, and gives a hint to what the next generation of web browsing should be like. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.