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.
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,
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
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...
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?
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
me !
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.
master of th...
Member
30 Points
33 Posts
Re: PROBLEM SOLVE
May 20, 2007 11:38 AM|LINK
Thank alot...
it's now working
vinodsatapar...
Member
94 Points
21 Posts
Re: error: enableEventValidation="true"/
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.
vinodsatapar...
Member
94 Points
21 Posts
Re: error: enableEventValidation="true"/
May 24, 2007 08:48 AM|LINK
This works for me. I Have Bind Datalist in if not is postback. Thanks
falguni_shel...
Member
4 Points
2 Posts
Re: error: enableEventValidation="true"/
May 27, 2007 10:49 PM|LINK
Hi,
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
MyCode
End if
My problem got resolved.
Thanks. I appreciate for the help.
Eduardo Lore...
Member
22 Points
12 Posts
Re: error: enableEventValidation="true"/
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.
vidaldiego
Member
57 Points
12 Posts
Re: error: enableEventValidation="true"/
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
zpbappi
Member
112 Points
21 Posts
Re: error: enableEventValidation="true"/
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?
nalla.sathis...
Member
2 Points
1 Post
I tried this (Setting EnableEventValidation="False" probably overcomes the issue )
Jun 22, 2007 06:45 AM|LINK
Hi
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.
ASP.NET c# <%@ Page Language="VB" %> Custom validator Customvalidator repeater Custom errors ADO.NET PostBack adrotator defect Callback .net server control menu control Asp .net access Web Form from User Control CustomValidator asp .net 1.1 web form controls checkbox checking detecting page webform .net c# webform Message box access database SQL SERVER ascx 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 Page_Load
rafiki31
Member
2 Points
1 Post
Re: I tried this (Setting EnableEventValidation="False" probably overcomes the issue )
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 me !
bholliman
Member
12 Points
3 Posts
Re: error: enableEventValidation="true"/
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...