Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 27, 2011 07:31 AM by master of the maze
May 20, 2007 11:38 AM|LINK
it's now working
May 24, 2007 07:29 AM|LINK
I have the same problem. i have ImageButtom in datalist control. When i click on that i click on that i got above message. Plz Help what is the best method to solve out above problem.
May 24, 2007 08:48 AM|LINK
This works for me. I Have Bind Datalist in if not is postback. Thanks
May 27, 2007 10:49 PM|LINK
I had same problem. I have Save button inside the edit in Gridview. But when i click on SAVE button it was giving me same error. But i resolved it through your solution. I put this code at my pageload event,
if not isPostback then
My problem got resolved.
Thanks. I appreciate for the help.
May 27, 2007 11:42 PM|LINK
Also, check the HTML rendered by your page after it has been loaded by the browser and check if the page has NESTED <form> tags.
Jun 20, 2007 03:23 PM|LINK
I have the same problem and was caused because I had a button that triggered a postBack within an AJAX "update panel". I took it out from there and works ok.
PostBack UpdatePanel Post Back Update Panel enableEventValidation
Jun 20, 2007 08:29 PM|LINK
i faced the same problem. it happens when you want to use ajax .net in your aspx page. in that case you might have the following lines at the top of your aspx page...
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddLogo.aspx.cs" Inherits="AddLogo" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
jus change the @Page directive section to the following...
<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeFile="AddLogo.aspx.cs" Inherits="AddLogo" %>
and it works now. [:)] this is what i derived from the error message. but its a temporary solution. can anyone please tell me the actual cause and solution of that error?
Jun 22, 2007 06:45 AM|LINK
I am new to this site.I tried this.I kept in the webform (Design view) like <@ page EnableEventValidation="False" />
Then it is not showing any error,but fuctionality is not working in the server system.
In local system it is showing an error like "The page directive doesnot support "EnableEventValidation" attribute.
<%@ Page Language="VB" %>
Custom validator Customvalidator repeater
access Web Form from User Control
asp .net 1.1 web form controls
checkbox checking detecting page webform .net c# webform
asp .net menu selectable select click clickable scroll postback
checkbox list validation
asp.net web.config profile
asp .net TreeView
asp .net ... c# ... SQL javascrpt
Aug 03, 2007 03:23 AM|LINK
Here it goes, when you use any, commanEventArg, like you use when you want to use a button on a datagrid or when you use Eventevalidations, you cant use your databind with in the page_load it must be on a if not page.ispostback statement. ! That worked for
Aug 22, 2007 01:37 PM|LINK
I'll be honest, I did not go through and read all of the posts so if you have the answer already... I apologize.
I just ran into the same issue using a datalist control and my issue was that I had the code that binded to the datalist in the Page_Load event. I removed the code from the Page_Load event and put it in the Page_PreRender event to fix it. The Page_PreRender
event occurs after the Page_Load in the ASP.NET life cycle so by using the PreRender event, the page has enough time to load the necessary page objects before it binds the data.
I think it was mentioned that setting the enableEventValidation to false is a security risk. I would highly suggest you try and move the code to the PreRender event before turning the enableEventValidation off.
Hope this helps...