Answered by:. Archived Forums. State Management for ASP. Sign in to vote. Thursday, August 29, AM. User posted You asked if they store their data in viewstate, and they do. User posted They all do, including the label. Assuming the size of viewstate is the main cause of the 'slowness', I would like to suggestion you tackle it from a more holistic approach. You have 'n' number of server controls, do you need all 'n' numbers to be server controls and not just plain HTML?
Your code is fine. By default if you call the base. HandleUnauthorizedRequest it throws a exception which is intercepted by the forms authentication module and you get redirected to the login page which might not be the desired behavior. So your approach is correct. The source of this problem seems to be the build upgrade process for Windows 10, where it re-installs IIS For example, this same problem also affects the URL Rewrite 2 module which is also fixed by running a repair.
Hopefully the team at Microsoft who works on maintaining the IIS config between build updates will get a chance to fix this they're tracking this bug on github here. Until then, you have to do this repair after installing any new Windows builds. So, once you've solved this by following the steps above, you shouldn't run into it again with the next major Windows 10 update. For more information about saving server control view state, see ASP.
View state is enabled for all server controls by default, but there are circumstances in which you will want to disable it. For more information, see ASP. NET Performance Overview. For information about dictionaries and how to use them, see Collections and Data Structures. Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services. Sign up using Facebook. Sign up using Email and Password.
Post as a guest Name. Email Required, but never shown. The Overflow Blog. Does ES6 make JavaScript frameworks obsolete?
Podcast Do polyglots have an edge when it comes to mastering programming Featured on Meta. Now live: A fully responsive profile. Linked Related Hot Network Questions. Question feed.
0コメント