about view state and how validation controls will be
executed on client and server
Answers were Sorted based on User's Feedback
View state is the object which is used to store the values
of a particular page during postback.It stores the values
in a hidden form field in form of string.And if again page
is loaded then it reloads the values of the controls on
particular page from the viewstate.Validation controls are
execute on clien-side.They contains isValid property which
is used to valid the control.Then it executes on the server.
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / siddheshwar duchal mob- +91 97
ViewState allows the state of objects (serializable) to be
stored in a hidden field on the page. ViewState is
transported to the client and back to the server, and is not
stored on the server or any other external source. ViewState
is used the retain the state of server-side objects between
postabacks.
Item stored in ViewState exist for the life of the current
page. This includes postbacks (to the same page).
"EnableViewState" :- It allows the page to save the users
input on a form across postbacks. It saves the server-side
values for a given control into ViewState, which is stored
as a hidden value on the page before sending the page to the
clients browser. When the page is posted back to the server
the server control is recreated with the state stored in
viewstate.
The validation can be handeled on client side.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / zohaib shahid
The validation can be handeled on client side as well as on
the server side, and depends on the situation. Although the
client side validation can be handeled by the Java Script..
Is This Answer Correct ? | 0 Yes | 4 No |
What's the use of formatters in .net?
What is http protocol and how it works?
Apart from IDE what are the enhancements in asp.net 2.0?
Differentiate between Server Transfer and Response Redirect?
When a dropdownlist has been added by some records and it has been binded why it is not executing i'm facing this error pls help me ? if (is!pageposback) { arraylist books = new arraylist; books.add ("gone with the wind"); books.add ("rahulsriramprakash"); books.add ("vishal"); dropdowndisplay.datasource=books; dropdowndisplay.databind(); } The error is : 1) The dropdowndisplay does not exist.
How to convert any string to view state format in asp.net? §ÇÛ짬ªª³ö»Ç¾ö»ÂÇ¿¾»¼»¾ö¼ÉÇöÇÏǼ»Ãö®±ª§°ö«³ -- i want convert this string to view state.
Explain how asp.net page works?
What is a Repeater Control and how does it works? and what is the diffrence b/w Gridview,datalist and repeater control?
True or False: A Web service can only be written in .NET?
public key?
What is advantage of asp.net?
can machine.config file orverrides web.config. For example: if u set session timeout as 30 mins in web.config file to a particular application and if u set session timeout as 10 mins in machin.config. what will happen and which session is set to the appliction?