Results 1 to 3 of 3

Thread: command line parameters

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Posts
    110

    Question

    In Visual Basic you can use command line parameters with your programs, can you do that with asp? Like if you went to commandline.asp hello.txt the asp would be able to get hello.txt and do something with it(in my case open it and put its contents on a certain part of the webpage)? Any help is appreciated.

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    they are called querystrings

    http://www.whatever.com/mypage.asp?id=1&name=Chris

    Now in asp you can access those by using

    request.querystring("id")
    request.querystring("name")
    the ? mark is used before the first one and all other querystrings after that are seprated by a &
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Posts
    110
    Thank you so much! You have no idea how helpful that was.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width