DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links