isset in ASP...type mismatch ouch

Discussion in 'C#' started by neha2011, May 13, 2011.

  1. #1
    Hi all is there a way to check whether a variable is empty.

    Code below "no funciona" as they say in Spain.

    if (IsEmpty(Request.QueryString("year")) Then
                    year =  Year(now)
                    Else
                    year = Request.QueryString("year")
                    End if
    Code (markup):
     
    neha2011, May 13, 2011 IP
  2. RonBrown

    RonBrown Well-Known Member

    Messages:
    934
    Likes Received:
    55
    Best Answers:
    4
    Trophy Points:
    105
    #2
    IsNull

    If len < "a number"
     
    RonBrown, May 14, 2011 IP