|
INTERVIEW QUESTIONS
MICROSOFT
.NET DATABASE
DETAILS
Question: What are the advantages/disadvantages of viewstate?
Answer: 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.
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.
|
|
|
Category |
.Net Database Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 6968 users |
Added on |
9/13/2014 |
Views |
72173 |
Rate it! |
|
|
Question:
What are the advantages/disadvantages of viewstate?
Answer:
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.
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.
Source: CoolInterview.com
view state is an asp.net feature that provides for retaining the values of page and control properties that change from one execution of a page to another Source: CoolInterview.com
Answered by: birendra pandey | Date: 9/18/2009
| Contact birendra pandey
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
How do you find the error, how can you know the number of rows affected by last SQL Statement?
|
View Answer
|
|
What is Task?
|
View Answer
|
|
What is job?
|
View Answer
|
|
How do we upgrade SQL Server 7.0 to 2000?
|
View Answer
|
|
Explain features of SQL Server like Scalability , Availability, Integration with Internet.
|
View Answer
|
|
What is de-normalization? When do you do it and how?
|
View Answer
|
|
Explain differences between Server.Transfer and server.execute method?
|
View Answer
|
|
What is indexing?
|
View Answer
|
|
What is referential integrity and how can we achieve it?
|
View Answer
|
|
How do you use DBCC statements to monitor various ASPects of a SQL Server installation?
|
View Answer
|
|
What is the purpose of UPDATE STATISTICS?
|
View Answer
|
|
What are cursors? Name four type of cursors and when each one would be applied?
|
View Answer
|
|
What is the difference between a Local temporary table and a Global temporary table? How is each one used?
|
View Answer
|
|
What does it mean to have quoted_identifier on? What are the implications of having it off?
|
View Answer
|
|
What is the STUFF function and how does it differ from the REPLACE function?
|
View Answer
|
|
What is an execution plan? When would you use it? How would you view the execution plan?
|
View Answer
|
|
What is an execution plan? When would you use it? How would you view the execution plan?
|
View Answer
|
|
What is one of the first things you would do to increase performance of a query? For example, a boss tells you that “a query that ran yesterday took 30 seconds, but today it takes 6 minutes”?
|
View Answer
|
|
What is the purpose of using COLLATE in a query?
|
View Answer
|
|
Using query analyzer, name 3 ways you can get an accurate count of the number of records in a table.
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All .Net Database Interview Questions & Answers - Exam Mode /
Learning Mode
|