You are not logged in.

#1 2015-02-19 09:06:46

Ibraheem
Webmaster
From: Capital
Registered: 2012-03-16
Posts: 23,140
Website

How to minimize the size of the ViewState data?

Question:
What property do you modify on a server control to minimize the size of the ViewState data?

Option A):
ViewState=true
Option B):
Set EnableViewState to true.
Option C):
None of these all
Option D):
Set EnableViewState to false.

Correct Answer is Option D):
Set EnableViewState to false.

Explanation:
In ASP.NET when a form is postback to server it reappears in the browser with all form values. ASP.NET page and controls maintain their state by in hidden form field named _ViewState. By default it is enable for all server controls and sometimes create problem because unnecessary data are stored in this field. To minimize the size of the ViewState data, set EnableViewState to false.

2015-02-19 09:06:46

Advertisement
Ads By Google

Re: How to minimize the size of the ViewState data?



\n

Board footer