.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

What are the advantages and disadvantages of viewstate?

Posted By :Jegan R     Posted Date :November 02, 2010    Points :10   Category :ASP.Net 
The primary advantages of the ViewState feature in ASP.NET are:
1. Simplicity. There is no need to write possibly complex code to store form data between page submissions.
2. Flexibility. It is possible to enable, configure, and disable ViewState on a control-by-control basis, choosing to persist the values of some fields but not others.
There are, however a few disadvantages that are worth pointing out:
1. Does not track across pages. ViewState information does not automatically transfer from page to page. With the session
approach, values can be stored in the session and accessed from other pages. This is not possible with ViewState, so storing
data into the session must be done explicitly.
2. ViewState is not suitable for transferring data for back-end systems. That is, data still has to be transferred to the back
end using some form of data object


You can also find related Interview Question to What are the advantages and disadvantages of viewstate?  below: 

What are the disadvantages of viewstate/what are the benefits?

  
Disadvantages
1)Performance can be reduced. becuse the viewstate is stored in the page itself, storing large values can cause the page to slowdown.It can carry only up to 10 KB of data very easily without causing any degraded perfomance.
2) As view state is stored in a hidden field on the page although it stores data in a hashed base64 encoded format, it can be tampered.

Advantages :
1) No server resources are required
2) simple Implementation
3) Automatic retention of page & view state (More...)

What are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?

  
SQLServer.NET data provider is high-speed and robust, but requires SQL Server license purchased from Microsoft. OLE-DB.NET is universal for accessing other sources, like Oracle, DB2, Microsoft Access and Informix, but it's a .NET layer on top of OLE layer, so not the fastest thing in the world. ODBC.NET is a deprecated layer provided for backward compatibility to ODBC engines. (More...)

What are Advantages and Disadvantages of using Connection Pooling

  
Advantage of using Connection Pooling is an improvement of performance and scalability

Disadvantage is that one or more database connections, even if they are currently not used, are kept open
(More...)

What are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?

  
SQLServer.NET data provider is high-speed and robust, but requires SQL Server license purchased from Microsoft. OLE-DB.NET is universal for accessing other sources, like Oracle, DB2, Microsoft Access and Informix, but it's a .NET layer on top of OLE layer, so not the fastest thing in the world. ODBC.NET is a deprecated layer provided for backward compatibility to ODBC engines. (More...)

What are the advantages and disadvantages of LINQ to Sharepoint ?

  
Advantages:

Intellisense
Strongly typed access to the entities of the list
Faster development
Simplify complex queries

Disadvantages:

If the new columns are added or its datatype changed, the datacontext class used by LINQ is no longer valid and may break the code
Extra layer to the actual CAML query
(More...)

What are the Advantages and Disadvantages of WCF?

  
Advantages

1. WCF provides better reliability and security compared to ASMX Web services.

2. In WCF, there is no need to make much of a change to code to use the security model and alter the binding.

3. Small changes in the configuration file will match your requirements.

4. WCF provides interoperability between services.

Disadvantages

1. WCF does not support method overloading functions. (More...)

What is the difference between ViewState and SessionState?

  
ViewState persist the values of controls of particular page in the client when post back operation done. When user requests another page previous page data no longer available.

SessionState persist the data of particular user in the server. This data available till user close the browser or session time completes. (More...)

Advantages of DBMS?

  
1.Redundancy is controlled.
2.Unauthorised access is restricted.
3.Providing multiple user interfaces.
4.Enforcing integrity constraints.
5.Providing backup and recovery. (More...)

What are the disadvantages of AJAX?

  
The disadvantages are:
a)Ajax is not so friendly with search engine indexing because it uses Javascript for much part of its code. Search engines generally do not index Javascript present in web pages.
b)Dynamically created pages created by ajax does not support back button which takes the user to the previous pages. (More...)

Advantages of Crystal Reports ?

  
Advantages of Crystal Reports :
-------------------------------

Some of the major advantages of using Crystal Reports are:

1. Rapid report development since the designer interface would ease the coding work for the programmer.

2. Can extend it to complicated reports with interactive charts and enhance the understanding of the business model

3. Exposes a report object model, can interact with other controls on the ASP.NET Web form

4. Can programmatically export the reports into widely used formats like .pdf, .doc, .xls, .html and .rtf (More...)

What Is The Difference Between ViewState and SessionState?

  
View State persist the values of controls of particular page in the client (browser) when post back operation done. When user requests another page previous page data no longer available.
SessionState persist the data of particular user in the server. This data available till user close the browser or session time completes. (More...)

What are the Benifits of Using ViewState?

  
a).No server resources are required because state is in a structure in the page code.
b).Simplicity.
c).States are retained automatically.
d).The values in view state are hashed, compressed, and encoded, thus representing
e).A higher state of security than hidden fields.
f).View state is good for caching data in Web frame configurations because thedata is cached on the client. (More...)

When during the page processing cycle is ViewState available?

  
After the Init() and before the Page_Load(), or OnLoad() for a control. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend