Solved

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

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

Technology Partners: 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

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

685 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