locked
Passing values in the url RRS feed

  • Question

  • User-44640224 posted

    I know how to pass value using the url but I don't always want to pass a value. how do I test for a value that may or maynot be there without getting an error?

    Monday, June 30, 2008 4:07 PM

Answers

  • User-990694832 posted

    Try

    If request.querystring("yourkey") is nothing

    your string is empty

    else

    do whatever

    end if

     

    hope this helps

    DK

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 2, 2008 9:13 AM

All replies

  • User187056398 posted

            if (Request.QueryString["KeyName"] == null)
            {
                // no KeyName in QueryString
            }

    Monday, June 30, 2008 4:33 PM
  • User-990694832 posted

    Try

    If request.querystring("yourkey") is nothing

    your string is empty

    else

    do whatever

    end if

     

    hope this helps

    DK

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 2, 2008 9:13 AM