What are the disadvantages of view state / what are the
benefits?
Answers were Sorted based on User's Feedback
Answer / suresh
Advantage:
1) Maintains the state for autopostback event.
2) Easy to use.
3) No ServerSide resources required.
4) Passed into HiddenFied.
5) Basic enncryption algorithm is applied when passing the data.
Disadv:
1) When large data is there then perfomance is issue.
2) Good Hacker can get the data very easily.
| Is This Answer Correct ? | 13 Yes | 3 No |
Answer / 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 |
Explain the page lifecycle of an asp.net mvc? : asp.net mvc
When web.config is called ?
What is postback in asp net?
In C#.net application is run on linux michine
What are the Application_Start and Session_Start subroutines used for?
1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5
what to magage the state manament in asp.net with respect to in_prock and out_prock
difference between caching objects in session objects?
write six HTTP request method?
Which tool you have done?
What are the events that happen when a client requests an asp.net page from iis server?
How can we do the client side validation and Server side validations? But i told that At client side by with the help of validations control or by javascript? But I dont know about the Server side controls Explain?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)