Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are the disadvantages of view state / what are the
benefits?

Answer Posted / sreyasmn

Advantages:
- No server resources required
- simple implementation
- automatic retention of page and control state
- Enhanced security features. The values in view state are
hashed, compressed, and encoded for Unicode implementations.

Disadvantages - Because the view state for a given page
must be kept on the server, it is possible for the current
state to be out of synchronization with the current page of
the browser, if the user uses the Back feature on the
browser to go back in the history.For example, suppose the
user goes to Page 1, then clicks a button to go to Page 2,
then presses Back to return to Page 1. The current page on
the browser is now Page 1, but the current state on the
server is that of Page 2. Advantages - On ordinary Web
Forms pages, their view state is sent by the server as a
hidden variable in a form, as part of every response to the
client, and is returned to the server by the client as part
of a postback. However, to reduce bandwidth demand when
using mobile controls, ASP.NET does not send a page's view
state to the client. Instead, the view state is saved as
part of a user's session on the server. Where there is a
view state, a hidden field that identifies this page's view
state is sent by the server as part of every response to
the client, and is returned to the server by the client as
part of the next request.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write some code using interfaces, virtual methods, and an abstract class`

2103


What are validators and list some validators of asp.net?

1020


What is odata in web api?

1134


is there any third party tools are using in .net technologies? what are there ? give me the brief introduction?

2473


What are resource file and how do we generate resource file?

1025


What is scope of an application variable in asp.net?

1043


What is the difference between viewstate and hidden field in asp.net?

1077


Explain the asp.net mvc request life cycle? : asp.net mvc

1095


What are themes and skins in 2.0, explain usage scenario?

994


In how many ways we can retrieve table records count?

1103


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

1103


What is the difference between custom controls and user controls?

989


What is a gridview in asp.net?

1076


What is OSI layer? Explain different layers.

1112


What is the use of web.config and machine.config files?

1207