Should i disable viewstate




















May 23, Views Asp. May 20, Views Asp. I'm Krishan Kumar Singh author,. NET technologies. I love to work with web, window and mobile applications of Microsoft technology including ASP.

NET, C. Net, Ado. NET Asp. Net C. Recent Post. About the author. How to Check if a temporary table exists and delete if it exists before creating a temporary table Mar 21, Views 10 Asp. Crystal Reports: Fix for "Load report failed" error. Net using C Dec 22, Views 10 Asp. Net Nov 23, Views 10 Asp. Net using C Nov 23, Views 10 Asp. How to open field explorer in visual studio crystal report Nov 23, Views 10 Asp.

Net using C and VB. Net Nov 21, Views 10 Asp. You do not need ViewState in the following situations: The control is repopulated on every postback. If you ignore old data, and if you repopulate the server control each time the page is refreshed then you do not need ViewState.

When you complete a web page, review the controls in the page and consider what information is being passed in the view state and whether you really need all that information to be maintained. To optimize web page size, consider disabling view state in these cases.

The control is an input control and it changes only from user actions. The control never changes. Next Recommended Reading. Config file. Completely removing ViewState Hidden Field. Net Page. Related Articles.

Add Comments. Thank you for the feedback. The comment is now awaiting moderation. You will be notified via email when the author replies to your comment. Please select a comment to reply. User posted Here's what Pooja Daga writes about your question? Tuesday, April 20, AM. User posted ou can disable a control's view state if the control does not contain any dynamic data, its value is hard-coded, or its value is assigned on every page request and you're not handling its events.

Thursday, April 22, AM. User posted This article talks about when to turn it off and when to put the viewstate on the web server. Thursday, April 22, PM. User posted So, do I have this correct?

Tuesday, April 20, PM. User posted If a page posts back to itself, like calling an update we should keep viewstate enabled?



0コメント

  • 1000 / 1000