Solved

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

Posted on 2009-04-06
2
2,234 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
Comment Utility
0
 

Author Closing Comment

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

enableEventValidation="false"

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now