What is advantage and disadvantage of viewstate

Answers were Sorted based on User's Feedback



What is advantage and disadvantage of viewstate..

Answer / vikas_asp@rediffmail.com

Advatage: Using viewstate we can maintain the state of
controls over page's postback.

Disadvantage: viewstate makes the page heavy during postback

Is This Answer Correct ?    2 Yes 1 No

What is advantage and disadvantage of viewstate..

Answer / vijay

view state helped to maintain a state of a object,
view state is used only for those objects which can be
serizaable

Is This Answer Correct ?    2 Yes 1 No

What is advantage and disadvantage of viewstate..

Answer / mano

Advantage:
1.view state used to store hidden values at the time of Postback.

2. It maintain state of object;

Disadvantage:
1.When process load into server it cost may higher.

SO when do web papplication,it good to avoid use of to many
HiddenFeilds

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is the difference between a cookie and a pixel?

0 Answers  


What is a proxy in web service?

0 Answers  


I have been asked in an interview What is your LOC(Line of Code)What will be the probable answer for that

1 Answers   HCL, Infosys, Mantec Consultants,


What are app services?

0 Answers  


What are the events that happen when a client requests an asp.net page from iis server?

0 Answers  






Explain the difference between response.redirect vs server.transfer

0 Answers  


What are the different types of sessions in asp.net?

0 Answers  


Can the action attribute of a server-side tag be set to a value and if not how can you possibly pass data from a form page to a subsequent page?

1 Answers  


How can we prevent an aspx page get refreshed when any information fetch from the database ?

2 Answers   Minecode,


Why is validation always done on the server? When does that occur?

2 Answers  


Does C# support static class?Is Static class be inherited by any class?

2 Answers  


If you want to bind the columns manually within the asp:datagrid tags what kind of tags you have to add.

0 Answers   Siebel,


Categories