How to solve this error

Posted by Jayakumars under ASP.NET on 10/10/2011 | Points: 10 | Views : 1060 | Status : [Member] [MVP] | Replies : 2
How to solve 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.

Mark as Answer if its helpful to you


Responses

Posted by: Vuyiswamb on: 10/10/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
at the top of your page , add this

 EnableEventValidation="false"


Thank you for posting at Dotnetfunda
[Administrator]

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 11/17/2011 [Member] Starter | Points: 25

Up
0
Down
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindGallery();
}
}


Use is post back to bind the conatiner or you may used "Del" as command name .

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response