Asp.Net : __VIEWSTATE Bug !
When you Try this on Asp.net 2.0 WebSite:
You will have something like that:
Server Error in '/' Application.
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
the Solution is to Remove
__VIEWSTATE parameter From
protected override void OnInitComplete(EventArgs e)
PropertyInfo isreadonly = typeof(System.Collections.Specialized.NameValueCollection).GetProperty("IsReadOnly", BindingFlags.Instance | BindingFlags.NonPublic);
isreadonly.SetValue(this.Request.QueryString, false, null);
isreadonly.SetValue(this.Request.QueryString, true, null);
Revision number 1, Saturday, February 06, 2010 1:04:56 PM by midomido
You must Login to comment.