26.02.2015 Views

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

94<br />

√<br />

√<br />

√<br />

They can be tampered creating a security hole.<br />

Page performance decreases if you store large data , as the data is stored in<br />

pages itself.<br />

Hidden fields do not support rich structures as HTML hidden fields are only<br />

single valued.Then you have to work around with delimiters etc to handle<br />

complex structures.<br />

Below is how you will actually implement hidden field in a project<br />

<br />

(B) What is ViewState ?<br />

Viewstate is a built-in structure for automatically retaining values among multiple requests<br />

for the same page. The view state is internally maintained as a hidden field on the page<br />

but is hashed, providing greater security than developer-implemented hidden fields do.<br />

(A) Do performance vary for viewstate according to User controls ?<br />

Performance of view state varies depending on the type of server control to which it is<br />

applied. Label, TextBox, CheckBox, RadioButton, and HyperLink are server controls<br />

that perform well with ViewState. DropDownList, ListBox, DataGrid, and DataList suffer<br />

from poor performance because of their size and the large amounts of data making<br />

roundtrips to the server.<br />

(B) What are benefits and Limitation of using Viewstate for state<br />

management?<br />

Following are the benefits of using Viewstate :-<br />

√<br />

√<br />

√<br />

√<br />

No server resources are required because state is contained in a structure in<br />

the page code.<br />

Simplicity.<br />

States are retained automatically.<br />

The values in view state are hashed, compressed, and encoded, thus representing<br />

a higher state of security than hidden fields.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!