how can i retained data in a variable. if there is a( static variable) in asp


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: how can i retained data in a variable. if there is a( static variable) in asp

  1. #1
    Michael Guest

    how can i retained data in a variable. if there is a( static variable) in asp


    do u have any idea on how will i retained data from a variable w/o using cookies/database
    in ASP. VB uses the static declaration but in ASP what?????. i also tried
    using redim preserve but it did'not work or maybe there's something wrong
    in my code. If u did one pls Email me back!!!

    mpalattao@hotmail.com
    Thank u Very Much!!!

    Mike

  2. #2
    Dev Ashish Guest

    Re: how can i retained data in a variable. if there is a( static variable) in asp

    HTTP is stateless, so a static var won't do any good. You can pass the
    variable's value between pages as a Session variable (I won't suggest using
    Session vars), or through hidden controls on a form (Request.Form) or
    through Request.Querystring.

    -- Dev

    Michael wrote in message <38edaed3$1@news.devx.com>...
    :
    :do u have any idea on how will i retained data from a variable w/o using
    cookies/database
    :in ASP. VB uses the static declaration but in ASP what?????. i also tried
    :using redim preserve but it did'not work or maybe there's something wrong
    :in my code. If u did one pls Email me back!!!
    :
    :mpalattao@hotmail.com
    :Thank u Very Much!!!
    :
    :Mike



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center