1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Passing values in ASP using str

Discussion in 'C#' started by GoDoTrance, Jun 19, 2008.

  1. #1
    I have the following code:

    str = "execute sq_nameofquery;"

    I need to be able to pass the Session("Username") into the query. Somewhat new to this so anyone got any ideas on how to do this prior to the point where I
    Set RS = Conn.Execute (str)

    GoDoTrance, Jun 19, 2008 IP
  2. GoDoTrance

    GoDoTrance Peon

    Likes Received:
    Best Answers:
    Trophy Points:
    For those of you that were curious, I figured it out on my own. Here is what I used

    strUser = "exec sq_queryname " & Session("Username")
    GoDoTrance, Jun 19, 2008 IP