Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    Posts
    124

    Unanswered: pass variable into function

    Is it possible to pass a session variable as a parameter into the javascript function?

    I was trying the following:

    onClick="return CheckForm(<%=Session("TotalRowsA")%>;"

    I thought I could do this, but can't seem to get it to work?

    Thanks,
    -D-

  2. #2
    Join Date
    Jun 2003
    Location
    USA
    Posts
    1,032
    Perhaps change this:

    onClick="return CheckForm(<%=Session("TotalRowsA")%>;"

    To be more like this instead:

    onClick="return CheckForm('<%= Session("TotalRowsA") %>');"
    J. Paul Schmidt, Freelance Web and Database Developer
    www.Bullschmidt.com
    Access Database Sample, Web Database Sample, ASP Design Tips

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •