Explain the disadvantages of viewstate?



Explain the disadvantages of viewstate?..

Answer / Shivani Shrivastawa

ViewState in ASP.NET is a hidden field used to maintain the state of the page and its controls during postbacks. However, it has some disadvantages:n- Increased Page Size: ViewState adds additional data to the HTML page, which can increase the size of the page and slow down performance.n- Security Risks: If an attacker gains access to the viewstate information, they could potentially manipulate the application's behavior.n- Complexity: Managing viewstate in large and complex applications can become difficult.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

How do you manage session in ASP and ASP.NET?

1 Answers   Microsoft,


Give real time examples for polymorphism, encapsulation, inheritance..

2 Answers   L&T,


What do you understand by aggregate dependency?

1 Answers   MindCracker,


What is meant by role based security? when we use this one

2 Answers  


What is break mode?

1 Answers  


What does setting a control's EnableViewState property to false accomplish?

1 Answers  


What websites use asp.net?

1 Answers  


Explain the different types of directives in .net?

1 Answers  


State management in asp.net ?

8 Answers   Accenture,


What is difference between cache and session?

1 Answers  


how to implement some securty aspect in our application i.e 1.cookie poisioning. 2.data encryption. 3.forcefull browsing 4.sql/code injection 5.securing web app by using web services ........my question is how to implement these thing in our application is this done by hard coding or by help of some tool

1 Answers   Satyam,


A Web Service Can Only Be Written In .net. Is it True??

1 Answers   Siebel Systems,


Categories