code of asp

Discussion in 'C#' started by adityagoel123, Jul 7, 2009.

  1. #1
    R/sir,

    can any one tell the line by line explanation of this asp code?

    <%
    dim fname
    fname=Request.QueryString("fname")
    If fname<>"" Then
    Response.Write("Hello " & fname & "!<br />")
    Response.Write("How are you today?")
    End If
    %>


    thanks
     
    adityagoel123, Jul 7, 2009 IP
  2. aquila10

    aquila10 Peon

    Messages:
    12
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <%

    ' define the variable fname
    dim fname

    'read fname's value from the query string
    fname=Request.QueryString("fname")

    'check if fname is empty
    If fname<>"" Then

    'write back Hello ....
    Response.Write("Hello " & fname & "!<br />")
    Response.Write("How are you today?")

    'end of if
    End If
    %>
     
    aquila10, Jul 7, 2009 IP
  3. selinangela

    selinangela Peon

    Messages:
    35
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It's Right!
     
    selinangela, Jul 10, 2009 IP