#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    10
    Rep Power
    0

    Pass var from asp to vbscript


    Hey all, is there a way that I could reference or pass a variable from the asp code on a page to vbscript between vbscript tags?

    <script type="text/vbscript">
    personFor=<%AuthUser.Name%>
    </script>
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    10
    Rep Power
    0
    Just >
    <%
    If staff = "No" Then
    personFor = AuthUser.Name
    personBy = AuthUser.Name
    Else
    personFor = Request("UserSel")
    personBy = AuthUser.Name
    End If
    %>

    Then between the <vbscript> tags

    personFor="<% = personFor %>"
    personBy="<% = personBy %>"

IMN logo majestic logo threadwatch logo seochat tools logo