?
Solved

Error on the page  Event validation is enabled using <pages enableEventValidation="true"/>  ?

Posted on 2009-04-06
2
Medium Priority
?
2,244 Views
Last Modified: 2012-05-06
Can someone help me with this? Please
I have a dropdownlist in my program.when I choose some of it's attributes I recieve this 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.
what should I do? and what is this error for?

 

public partial class UserControls_publication : System.Web.UI.UserControl

    {

        private void Page_Load(object sender, EventArgs e)

        {

 

        }

 

        public void Search_Btn_Click(Object o, EventArgs e)

        {

            Page.Response.Redirect("ProjectDescCurrent.aspx?PID=" + ddlSearch.SelectedItem.Value);

        }

 

  }

 

0
Comment
Question by:Romacali
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
nmarun earned 1500 total points
ID: 24079067
0
 

Author Closing Comment

by:Romacali
ID: 31567108
problem solved. It was a security issue..on the config page.I had to declare this

enableEventValidation="false"

0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question