I have a webpage where the user will select 2 teams from a check box list. Once the the 2 teams are selected then a button will appear from them to move to another page. In Internet Explorer 8, the button does not appear and I have an error with an ! DONE
at the bottom left of the IE window on the status bar. The ! DONE error comes up after the user selects the 2nd team/2nd Check box. Not sure how to fix this. Google/Firefox seem to be fine and do not have this issue.
Here is the error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8; Tablet PC 2.0; InfoPath.3; .NET4.0C; .NET4.0E)
Timestamp: Thu, 1 Mar 2012 03:07:59 UTC
Message: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security
purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register
the postback or callback data for validation.
Line: 869
Char: 13
Code: 0
URI: http://www.mywebdomain.com/ScriptResource.axd?d=TFR3rfjf-IBSmOo6MIcKOuY5ewUAv_gKdfQt245vR_y-5HbCdspozui0XwFucCrDAcEJq5e2XY9a7IHIi_xLGBNYPmrVcz21JvhMnaE-MHLN1QDbMINOmw_c_ZLLq6UlFT-WnJw-MA9DvtZbYREfb6O0cJsqzx1UDu28suviLYgihyfXbafKsTBis_7BXXgG0&t=ffffffff940d030f
Do not disable eventvalidation if you don't have to. It is very helpful in keeping your website secure. That's just a quick fix people use to get rid of the problem. What you need to figure out is what is causing the error and it's not the checkboxes. You
most likely have these characters "< or >" in a control and are posting that value which is dangerous. Use a Server.HtmlEncode and your problems should be solved.
Event Validation is something that should only be disabled if you have explored every possible option. I would suggest looking at the content you are posting. You are probably posting some HTML in a decoded format. You should use some form of HTML Encode,
this should fix the issue.
tvb2727
Participant
922 Points
1270 Posts
Issue with Internet Explorer 8
Mar 01, 2012 02:08 AM|LINK
I have a webpage where the user will select 2 teams from a check box list. Once the the 2 teams are selected then a button will appear from them to move to another page. In Internet Explorer 8, the button does not appear and I have an error with an ! DONE at the bottom left of the IE window on the status bar. The ! DONE error comes up after the user selects the 2nd team/2nd Check box. Not sure how to fix this. Google/Firefox seem to be fine and do not have this issue.
Here is the error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8; Tablet PC 2.0; InfoPath.3; .NET4.0C; .NET4.0E)
Timestamp: Thu, 1 Mar 2012 03:07:59 UTC
Message: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Line: 869
Char: 13
Code: 0
URI: http://www.mywebdomain.com/ScriptResource.axd?d=TFR3rfjf-IBSmOo6MIcKOuY5ewUAv_gKdfQt245vR_y-5HbCdspozui0XwFucCrDAcEJq5e2XY9a7IHIi_xLGBNYPmrVcz21JvhMnaE-MHLN1QDbMINOmw_c_ZLLq6UlFT-WnJw-MA9DvtZbYREfb6O0cJsqzx1UDu28suviLYgihyfXbafKsTBis_7BXXgG0&t=ffffffff940d030f
Shellymn
Contributor
2602 Points
485 Posts
Re: Issue with Internet Explorer 8
Mar 01, 2012 02:55 AM|LINK
Make the below change
Page EnableEventValidation="false"
tvb2727
Participant
922 Points
1270 Posts
Re: Issue with Internet Explorer 8
Mar 01, 2012 03:29 AM|LINK
Where would I make that change?
ny2244111
Member
184 Points
34 Posts
Re: Issue with Internet Explorer 8
Mar 01, 2012 04:35 AM|LINK
Do not disable eventvalidation if you don't have to. It is very helpful in keeping your website secure. That's just a quick fix people use to get rid of the problem. What you need to figure out is what is causing the error and it's not the checkboxes. You most likely have these characters "< or >" in a control and are posting that value which is dangerous. Use a Server.HtmlEncode and your problems should be solved.
tvb2727
Participant
922 Points
1270 Posts
Re: Issue with Internet Explorer 8
Mar 01, 2012 05:58 AM|LINK
What do you mean by this? Do you have an Example?
tvb2727
Participant
922 Points
1270 Posts
Re: Issue with Internet Explorer 8
Mar 01, 2012 07:36 AM|LINK
Also, this issue only happens when I'm at work. When I'm home, IE works fine.
Shellymn
Contributor
2602 Points
485 Posts
Re: Issue with Internet Explorer 8
Mar 01, 2012 08:14 PM|LINK
You can make that change in the aspx page or in web.config
eg:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ErrorPage.aspx.cs" Inherits="ErrorPage" EnableEventValidation="false"%>
eg -- webconfig..
<configuration> <system.web> <pages buffer="true" enableSessionState="true" autoEventWireup="true" enableEventValidation="false" masterPageFile = "~/Masters/Page1.master" /> </system.web> </configuration>tvb2727
Participant
922 Points
1270 Posts
Re: Issue with Internet Explorer 8
Mar 02, 2012 07:37 PM|LINK
Will test this later.
jshedley
Member
62 Points
11 Posts
Re: Issue with Internet Explorer 8
Mar 03, 2012 01:04 AM|LINK
Event Validation is something that should only be disabled if you have explored every possible option. I would suggest looking at the content you are posting. You are probably posting some HTML in a decoded format. You should use some form of HTML Encode, this should fix the issue.
Senior Developer
Frank Jiang ...
All-Star
16006 Points
1728 Posts
Microsoft
Re: Issue with Internet Explorer 8
Mar 10, 2012 02:15 AM|LINK
Please refer to these threads:
http://forums.asp.net/t/1745126.aspx/1
http://www.codeproject.com/Questions/54261/Invalid-call-back-and-post-back-problem
http://forums.asp.net/t/1511462.aspx/1
Best regards
Feedback to us
Develop and promote your apps in Windows Store