Hi All,
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?
Now , whenever I click on Image Button , some Server Error is shown,
Error is like,
Please, Can anybody Help me? Does anybody knows anything about this?
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 ....
<HeaderTemplate >
<table border = 0>
<tr>
<th> Name </th>
<th> ID </th>
<th> Dept</th>
<th>
<asp:ImageButto n ID="ImageButton 1" CommandName="up date" runat="server" />
</th>
</tr>
</HeaderTemplate>
<HeaderTemplate >
<table border = 0>
<tr>
<th> Name </th>
<th> ID </th>
<th> Dept</th>
<th>
<asp:ImageButto n ID="ImageButton 1" CommandName="up date" runat="server" />
</th>
</tr>
</HeaderTemplate>
Error is like,
Server Error in '/RepeaterCtrl' Application.
--------------------------------------------------------------------------------
Invalid postback or callback argument. Event validation is enabled using <pages enableEventVali dation="true"/> in configuration or <%@ Page EnableEventVali dation="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 ClientScriptMan ager.RegisterFo rEventValidatio n 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.Argument Exception: Invalid postback or callback argument. Event validation is enabled using <pages enableEventVali dation="true"/> in configuration or <%@ Page EnableEventVali dation="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 ClientScriptMan ager.RegisterFo rEventValidatio n 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.
--------------------------------------------------------------------------------
Invalid postback or callback argument. Event validation is enabled using <pages enableEventVali dation="true"/> in configuration or <%@ Page EnableEventVali dation="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 ClientScriptMan ager.RegisterFo rEventValidatio n 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.Argument Exception: Invalid postback or callback argument. Event validation is enabled using <pages enableEventVali dation="true"/> in configuration or <%@ Page EnableEventVali dation="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 ClientScriptMan ager.RegisterFo rEventValidatio n 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.
Comment