How to print variable.

Results 1 to 2 of 2

Thread: How to print variable.

  1. #1
    Join Date
    Dec 1969

    Default How to print variable.

    Session.Contents("status")<BR><BR>How do you print out onto a asp page the value of that variable<BR><BR>Yes I no simple ........ Im a newby to this syntax<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: How to print variable.

    &#039; Set a value...<BR> Session.Contents.Item( "status" ) = "Foobar"<BR><BR> &#039; Retrieve it...<BR> myValue = Session.Contents.Item( "status" )<BR> Response.Write myValue<BR><BR><BR>Because Contents is the "default" item of the Session object, and Item is the "default" property of the Contents collection, you can actually shortcut the Session access like so:<BR><BR><BR> &#039; Set a value...<BR> Session( "status" ) = "Foobar"<BR><BR> &#039; Retrieve it...<BR> myValue = Session( "status" )<BR> Response.Write myValue

Posting Permissions

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