Bound Data, ViewState, and PostBack

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
8/21/2010 6:26:30 AM
Gravatar
Total Posts 18439

Re: Bound Data, ViewState, and PostBack

regarding viewstate, if there is a line of code in any of your controls that sets Page.EnableViewstate = false; it will cause it to behave like 3.5 .NET and ViewStateMode settings will have no effect.

regarding ClientIdMode, it would be dangerous for me to make a global change to static it could break things. For the time being while we are still supporting 3.5 .NET I also cannot go sprinkling ClientIdMode properties on control declarations since the same files are used in 3.5 .NET. So myself I'm waiting until we drop support for 3.5 .NET before I start trying to change the way client ids are rendered.

However, that setting in Web.config should not prevent you from specifying ClientIdMode = static or predictable on your own custom controls.

Hope it helps,

Joe

8/21/2010 6:51:24 AM
Gravatar
Total Posts 18439

Re: Bound Data, ViewState, and PostBack

Here is a better article about viewstate in .NET 4

http://www.4guysfromrolla.com/articles/071410-1.aspx

note especially the little section about if EnableViewState and ViewStateMode got in a fight who would win

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.