My application is in .net 1.x. I have used anthem library.
In one of my page i have cascading dropdowns. I have use ajax for populating, at that time i m getting this error. Second and most important thing is this application working properly previously with ajax, also on live it is working properly.
So now ur wondering why i posted this. The heck up is our local server is formatted due to some reasons, and after installing IIS again, i m started getting this error on our server. The same version of application is working properly on other servers.
So i need to know is there any IIS settings i have to do for avoiding this error.
I was using the ATLAS cascading comboboxes on a page. I wired them up to services to do AJAX calls to populate the boxes correctly. I was so proud. Then I tried to submit the page. It blew up on me with the following error:
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.
I did some research. I found that the error was happening because the page did not know what valid values should be coming from the comboboxes because they were populated on the client at runtime. Being that I had the luxury of knowing what these values
would be because they were coming from my own database, I figured I can do that...
First, I needed to override the Render method to add the values alowed to the list. I did this inside the page itself (.aspx file)...
<script
runat="server">
Protected Overrides
Sub Render(ByVal writer
As System.Web.UI.HtmlTextWriter)
Me.RegisterValuesForCombos()
MyBase.Render(writer)
End Sub
</script>
I also put a SQLDataSource object on the page for each of my comboboxes...
I am using Ajax 1.0 for my site, on a page i got the same error
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.
actually i used template column with imagebutton to invoke grid view edit event.
but if i try to do this with command field, this works fine.
I am using Ajax 1.0 for my site, on a page i got the same error
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.
actually i used template column with imagebutton to invoke grid view edit event.
but if i try to do this with command field, this works fine.
I am using Ajax 1.0 for my site, on a page i got the same error
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.
actually i used template column with imagebutton to invoke grid view edit event.
but if i try to do this with command field, this works fine.
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.
i m using template field in gridview to perform edit/delete
if i set EnableEventValidation="true" in page header, it does not show error page.
Sorry posting so late. I was working on my code and I had this problem too.
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.
Anyways, here's one fix, it's not the smartest fix but it get the job done
Make your Web.config file look something like this, and with any chance, it should work.
I found a bad case of HTML on my page. There was a <td> which did not have a closing tag. This <td > had an invisible label inside it. I read somewhere in the posts that invisible controls do not render properly in 2.0, but works well with enabled property =false.
When I removed this code, it worked!! I am not getting the error anymore!!
pyv
Member
4 Points
2 Posts
Re: error: enableEventValidation="true"/
Mar 15, 2007 07:45 AM|LINK
My application is in .net 1.x. I have used anthem library.
In one of my page i have cascading dropdowns. I have use ajax for populating, at that time i m getting this error. Second and most important thing is this application working properly previously with ajax, also on live it is working properly.
So now ur wondering why i posted this. The heck up is our local server is formatted due to some reasons, and after installing IIS again, i m started getting this error on our server. The same version of application is working properly on other servers. So i need to know is there any IIS settings i have to do for avoiding this error.
"Asynchronous Operation" ASP.NET 1.1 Asp .net
ibanezplayer
Member
4 Points
3 Posts
Re: error: enableEventValidation="true"/
Apr 03, 2007 04:15 AM|LINK
I was using the ATLAS cascading comboboxes on a page. I wired them up to services to do AJAX calls to populate the boxes correctly. I was so proud. Then I tried to submit the page. It blew up on me with the following error:
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.
I did some research. I found that the error was happening because the page did not know what valid values should be coming from the comboboxes because they were populated on the client at runtime. Being that I had the luxury of knowing what these values would be because they were coming from my own database, I figured I can do that...
First, I needed to override the Render method to add the values alowed to the list. I did this inside the page itself (.aspx file)...
<script runat="server">Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)
Me.RegisterValuesForCombos()
MyBase.Render(writer)
End Sub
</script>
I also put a SQLDataSource object on the page for each of my comboboxes...
<asp:SqlDataSource ID="DataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:myConnectionString %>" SelectCommand="pc_list1" SelectCommandType="StoredProcedure /><asp:SqlDataSource ID="DataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:myConnectionString %>" SelectCommand="pc_list2" SelectCommandType="StoredProcedure" />
I linked them to the comboxes...
<
asp:DropDownList ID="List1" runat="server" DataSourceID="DataSource1" DataTextField="Desc1" DataValueField="ID1" /><asp:DropDownList ID="List2" runat="server" DataSourceID="DataSource2" DataTextField="Desc2" DataValueField="ID2" />
Then, I put the "magic" code behind the method RegisterValuesForCombos inside the codebehind page (.aspx.vb)
Protected Sub RegisterValuesForCombos()Me.List1.DataBind()
Me.List2.DataBind()
End Sub
Results... It worked. This is because at render time, the dropdowns are bound to the datasource and the page knows what valid values are.
Enjoy!
Stacey Brown
ibanezowner@yahoo.com
ATLAS AJAX Cascading Dropdowns Combobox
jmpena
Member
4 Points
11 Posts
PROBLEM SOLVE
Apr 09, 2007 04:11 PM|LINK
Well to FIX the problem u should put this line <pages enableEventValidation="false"/> in the webconfig before the <system.web>
the webconfig should look like this:
<system.web>
<pages enableEventValidation="false"/>
---
Josema
Dominican Republic
+Dominican Republic
+Developer
piyooosh
Member
14 Points
5 Posts
Re: error: enableEventValidation="true"/
Apr 20, 2007 08:32 AM|LINK
I am using Ajax 1.0 for my site, on a page i got the same error
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.
actually i used template column with imagebutton to invoke grid view edit event.
but if i try to do this with command field, this works fine.
can anyone help me ?
Thank you
piyooosh
Member
14 Points
5 Posts
Re: error: enableEventValidation="true"/
Apr 20, 2007 08:35 AM|LINK
hello,
I am using Ajax 1.0 for my site, on a page i got the same error
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.
actually i used template column with imagebutton to invoke grid view edit event.but if i try to do this with command field, this works fine.
can anyone help me ?
Thank you
piyooosh
Member
14 Points
5 Posts
Re: error: enableEventValidation="true"/
Apr 20, 2007 08:40 AM|LINK
hello,
I am using Ajax 1.0 for my site, on a page i got the same error
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.
actually i used template column with imagebutton to invoke grid view edit event.
but if i try to do this with command field, this works fine.
can anyone help me ?
Thank you
piyooosh
Member
14 Points
5 Posts
Re: error: enableEventValidation="true"/
Apr 20, 2007 01:32 PM|LINK
hi,
i have the same error
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.
i m using template field in gridview to perform edit/delete
if i set EnableEventValidation="true" in page header, it does not show error page.
and edit event is also not working.
if someone has any solution, post it.
Thanks
TheException
Member
10 Points
5 Posts
Re: error: enableEventValidation="true"/
Apr 21, 2007 10:31 AM|LINK
Hey everbody,
Sorry posting so late. I was working on my code and I had this problem too.
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.
Anyways, here's one fix, it's not the smartest fix but it get the job done
Make your Web.config file look something like this, and with any chance, it should work.
<configuration>
<appSettings>
</appSettings>
<system.web>
<pages validateRequest="false" enableEventValidation="false"/>
<customErrors mode="Off"/>
<compilation debug="true">
</compilation>
</system.web>
</configuration>
Hope that helps, take care.
achristov
Member
4 Points
4 Posts
Re: error: enableEventValidation="true"/
Apr 25, 2007 12:28 PM|LINK
priya@what2w...
Member
2 Points
1 Post
Re: error: enableEventValidation="true"/
Apr 30, 2007 06:10 PM|LINK
I found a bad case of HTML on my page. There was a <td> which did not have a closing tag. This <td > had an invisible label inside it. I read somewhere in the posts that invisible controls do not render properly in 2.0, but works well with enabled property =false. When I removed this code, it worked!! I am not getting the error anymore!!
Thanks All!!
Priya
www.what2wear.ca