Results 1 to 4 of 4

Thread: State variables in ASP.net

  1. #1
    Join Date
    Jan 2011
    Posts
    42

    State variables in ASP.net

    I am software developer. Till now I worked on only static pages. And now I got a chance to develop some dynamic web pages. I have some knowledge about software language Asp.net, but I am not master in that. I want to know is there any place available in Asp.net to store all information which ever the type of data and retrieving them letter for using it for another purpose. Can you tell me about the storage place to keep variable type of data in asp.net? Is it possible to do with HTTP protocol?

  2. #2
    Join Date
    May 2009
    Posts
    539

    Re: State variables in ASP.net

    For your information I want to tell you that HTTP is nothing but a stateless problem and being stateless protocol unable to store any small amount of data into it. HTTP is just a carrier which carries request from user to server and response from server to user’s browser. I think there is a place to store all these kinds of information and it is session. Sessions are nothing but temporary state variables that is they store your data as long as your browser is opened. Actually sessions store user specific data into it. Everything in session is stored as a object that is why there is need to perform proper type casting when you want to retrieve your stored data.

  3. #3
    Join Date
    May 2009
    Posts
    511

    Re: State variables in ASP.net

    There is also another variable available in .net to store your data. Like sessions application also stores the data in the form of object. That’s why at the time retrieving particular data there is need to perform appropriate type casting at the time retrieval of data. The storing and retrieving procedure of data in case of application data is similar to storing data in single dimensional array. Remember in asp.net everything is object that’s why it is must to create applications object before using it for storing data.

  4. #4
    Join Date
    May 2009
    Posts
    527

    Re: State variables in ASP.net

    There are two types of variables available ASP.net for storing data or in development language say to Keep information related to particular state. I would like to tell you that session stores data into it as long as users Browser is in open state. When you close your browser all data stored in session variable is lost that’s why it is normally used to store temporary data like data used to verify particular user and all that simple example of this is log-in ID. Compared to session, Application variable is efficient variable to store all your data that you want keep even if browser is closed. Since it is stored in users physical memory.

Similar Threads

  1. What are an Environment Variables in PHP?
    By N I C K in forum Software Development
    Replies: 5
    Last Post: 21-02-2010, 01:29 AM
  2. What are the PHP Variables?
    By shivendra in forum Software Development
    Replies: 5
    Last Post: 28-01-2010, 07:05 PM
  3. Replies: 3
    Last Post: 31-07-2009, 01:09 PM
  4. c# environment variables
    By EULALIA in forum Software Development
    Replies: 3
    Last Post: 13-07-2009, 02:23 PM
  5. Replies: 4
    Last Post: 26-11-2008, 01:41 PM

Tags for this Thread

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
  •  
Page generated in 1,711,672,505.60515 seconds with 17 queries