Solved

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

Posted on 2009-04-06
2
2,243 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 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that undeā€¦
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

689 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