I am stucked with a problem , regarding Repeater Controls Header Template.
I want to show a Image Button in the Header Template of a Repeater Control and on the Click of that button, I would like to show one small Pop-up window.
Now , problem here is that , How to catch the event generated by the Image Button?
The Header Template looks like ....Now , whenever I click on Image Button , some Server Error is shown,
<HeaderTemplate>
<table border = 0>
<tr>
<th> Name </th>
<th> ID </th>
<th> Dept</th>
<th>
<asp:ImageButton ID="ImageButton1" CommandName="update" runat="server" />
</th>
</tr>
</HeaderTemplate>
Error is like,
Server Error in '/RepeaterCtrl' Application.Please, Can anybody Help me? Does anybody knows anything about this?
--------------------------------------------------------------------------------
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.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: 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.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.