answersLogoWhite

0


Best Answer

1) Viewstate is particular to a control/page whereas session is for the whole application. You can access the session data stored in page A in page B but viewstate does not behave so.

2) ViewState is maintained at client side whereas session is maintained at server side

3) Since viewstate is maintained at client, it does not have a concept of expiry but session will expire after the stipulated time

4) You can enable/disable view state for specific controls but you can't do that for session.

abhishek patel,

mobile number:9558551202

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the Difference between session and viewstate in asp?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is difference between session and view state in vb net?

View state applies to a specific instances of a ASP web page. It is normally held in a hidden field in the HTML response to the client (although there are ways to hold it in a database or other storage medium). It holds the properties of controls on your page so that they are retained between postbacks. You do need to be cautious about using view state. If you use it unnecessarily, it can lead to very large HTML files that get transferred to the browser. You can turn off viewstate on an application, page, or individual control level using the EnableViewState property. Session, or Session State, is an collection that you can assess to save and retrieve objects from one page view to another. Unlike viewstate, session state is held in memory (or a database for large applications), and the variables that you are holding in session are not lost as you move from page to page. In fact, unless/until you remove an object from Session, it will remain accessible until the session is closed.


Difference between ASP and JSP?

The main difference between ASP and JSP is that JSP is more script like and includes Java, whereas ASP does not. Both of these are server side languages.


Regarding lrit What is the difference between the authorised asp and the recognised asp?

An authorised ASP is authorised to test/certify. The recognised ASP is the ASP that provides the Data Centre for that particular Administration.


In ASP what is the difference between Error Object and Err Object in detail.?

sorry no answer


How do you declare session in javascript?

You can't. Sessions are a server-side technology. To properly implement a session, you have to use a server-side language like PHP, ASP, or Ruby.


What is the difference between ASP.net and ASP?

The main difference between ASP and ASP.Net is that ASP is interpreted whereas, ASP.NET is compiled. This implies that since ASP uses VBScript; therefore, when an ASP page is executed, it is interpreted. On the other hand, ASP.NET uses.NET languages, such as C# and VB.NET, which are compiled to Microsoft Intermediate Language. Below some other difference are given. 1. Classic ASP uses a technology called ADO to connect and work with databases. ASP.NET uses the ADO.NET technology. 2. ASP has Mixed HTML and coding logic where in asp.net html and coding part are separated by code behind files. 3. ASP.NET purely object oriented whereas ASP is partially object oriented. 4. For ASP No in-built support for XML whereas in ASP.NET full XML Support for easy data exchange. I think above details help you a lot. I hosted my website at Asp.net hosting of Mywindowshosting.com.


What is the difference between asp and servlet?

ASP is a server side technology which enables a developer to combine both HTML & scripting language in the same page. servlets are server side programs written in java.It is platform independent


What and the Difference Between ASP.NET and MVC?

Asp.net system is a part of a .net platform for building, deploying and running web applications. We can build up a web application by using both Asp.Net Web Form and Asp.Net MVC. In this article, I will uncover the principal difference between Asp.Net Web Form and Asp.Net MVC.We will discuss some important differences that will help you make a right choice between both of them. Let's take a look each of the differences in more detail. Difference between Asp.Net MVC and Web Forms:Our Company: Binary Informatics


How many objects are there in ASP?

There 7 types of objects in asp There are 1)application object 2)session object 3)request object 4)response object 5)server object 6)object context object 7)Error object(it is the new object included in asp 3.0)


What is the difference between asp and aspx?

ASP is Script based language while ASP.NET Compliled programming language ASP Support ADO Data Access Technology while ASP.NET Support ADO.NET ASP Support only VBScript while ASP.NET support VB.NET, C# and other .NET CTS Language. For more information on this topic visit . http://www.programmer2programmer.net/tips/interview_question/asp_dot_net.aspx


Which of the following are ASP standard objects A images B Request C Response D Server E Session F Application G Hardware Choose any that apply?

B Request C Response D Server E Session F Application


What is the difference between your sinuses and a migraine?

No. they are two different issues affecting the head causing pain! :) Sinus - http://www.sinuswars.com/sinuscauses.htm Migraine - http://www.midas-migraine.net/About_Migraine/newback02.asp