Last post Mar 10, 2012 09:58 AM by srinanthuram
Mar 01, 2012 03:08 AM|tvb2727|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.
Mar 01, 2012 03:55 AM|Shellymn|LINK
Make the below change
Mar 01, 2012 04:29 AM|tvb2727|LINK
Where would I make that change?
Mar 01, 2012 05:35 AM|ny2244111|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.
Mar 01, 2012 06:58 AM|tvb2727|LINK
Use a Server.HtmlEncode and your problems should be solved.
What do you mean by this? Do you have an Example?
Mar 01, 2012 08:36 AM|tvb2727|LINK
Also, this issue only happens when I'm at work. When I'm home, IE works fine.
Mar 01, 2012 09:14 PM|Shellymn|LINK
You can make that change in the aspx page or in web.config
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ErrorPage.aspx.cs" Inherits="ErrorPage" EnableEventValidation="false"%>
eg -- webconfig..
masterPageFile = "~/Masters/Page1.master" />
Mar 02, 2012 08:37 PM|tvb2727|LINK
Will test this later.
Mar 03, 2012 02:04 AM|jshedley|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.
Mar 10, 2012 03:15 AM|Frank Jiang - MSFT|LINK
Please refer to these threads:
Mar 10, 2012 09:58 AM|srinanthuram|LINK
ref this url