CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    ASP(active serber pages

    hi
    can anyone tell me how to assign a variable content to a session object. code is like this
    sub node_click
    thisdocid = treenode.text
    <% session("docid") = thisdocid %>
    end sub
    help me please
    thanks


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: ASP(active serber pages

    you are obvisously trying to mix client-side script and server-side script. That's not going to work.
    better assign the value of the client variable to an INPUT TYPE="HIDDEN" and pass that in your FORM to the server. You can then assign the variable value to the session variable.


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured