powered by QualityHosting

Passing parameters via URL

How do I use command line arguments in No-Touch Deployment apps?

In the MSDN Library you will find the following lines:

Note   Managed code executables deployed by Internet Explorer using an HREF link should not be started with command line arguments. Arguments are not successfully passed to the executable.

Well, that's just partly true. Chris Sells shows you how.

Note that his solution involves the manipulation of the IIS settings to be able to pass requests to executable files to a self created HTTP handler. You will probably not have the possibility to change the IIS configuration on an external web server.

Additionally one might ask the question why you would need command line parameters in conjunction with No-Touch Deployment applications. In Chris example he wants to remember the user name for the login dialog. In my opinion the usage of Isolated Storage files would be more appropriate in this scenario.

So, if you can tell me why command line support is essential to No-Touch Deployment apps, drop me a comment!


 

 

   Copyright (C) 2003-2008 dotnet-online.com. All Rights reserved.

Contact Me | Legal