Parameters on web application startup


Is it possible to pass a parameter on standalone web application (like a console app) ? For example : ./webapp --initfile=data.txt.

On console apps, on run event, you can pass arguments. So, I would like something similar to that.


Last time I ran into this need, I noted that there isn’t a way for a console app to get its parameters other than implement the Run event of ConsoleApplication. They aren’t saved anywhere. Just making the command line a public property of ConsoleApplication would be a great feature request, and I would sign on.

Try System.Commandline

Thanks Norman …