URL Event Target Problem

Hi. I have an URL page attached to a layout.
The URL is a ASP.Page with a datagridview component. This grid has itemtemplates with events. If a put de asp.page insde the Layout the event is not firing. If i invoke the asp.page from the browser it works ok.

Here is the asp.code and the error message in te attach.

<asp:GridView ID=“GridPatentes” runat=“server” ShowHeaderWhenEmpty=“True” AutoGenerateColumns=“False” DataKeyNames=“ID_Patente”>

<asp:BoundField DataField=“ID_Patente” HeaderText=“Id patente” />
<asp:BoundField DataField=“Descripcion” HeaderText=“Descripción” />
<asp:BoundField DataField=“Objeto” HeaderText=“Objeto asociado” />
<asp:TemplateField HeaderText=“Insertar” >

<asp:CheckBox ID=“CHKInsert” AutoPostBack=“true” OnCheckedChanged=“Prueba” runat=“server” />

</asp:TemplateField>
<asp:TemplateField HeaderText=“Modificar”>

<asp:CheckBox ID=“CHKUpdate” AutoPostBack=“true” OnCheckedChanged =“Prueba” runat=“server” />

</asp:TemplateField>
<asp:TemplateField HeaderText=“Eliminar”>

<asp:CheckBox ID=“CHKDelete” runat=“server” />


<asp:CheckBox ID=“CHKDelete” runat=“server” />

</asp:TemplateField>
<asp:TemplateField HeaderText=“Listar”>

<asp:CheckBox ID=“CHKListar” runat=“server” />


<asp:CheckBox ID=“CHKListar” runat=“server” />

</asp:TemplateField>
<asp:TemplateField HeaderText=“Ejecutar”>

<asp:CheckBox ID=“CHKEjecutar” runat=“server” />


<asp:CheckBox ID=“CHKEjecutar” runat=“server” />

</asp:TemplateField>

</asp:GridView>


up :smiley:

Hi,
please attach a complete example that we’ll be able to run