[Mono-list] RowCommand event missing in asp.net
Daniel Soto
daniel.soto2k at gmail.com
Mon Sep 17 22:48:37 EDT 2007
Hi list, again :-)
At least i can run xsp2, thanks to all.
I encountered a issue in GridView. The RowCommand event does not work in
mono? I have a GridView linked to a DataTable, and in the template
column i have some imagebuttons, as i show below
<asp:GridView ID="gridProductos" runat="server"
AutoGenerateColumns="false" AllowPaging="true"
OnItemCommand="gridProductos_RowCommand">
<Columns>
<asp:BoundField HeaderText="Cód. Producto"
DataField="codigo_producto" />
<asp:BoundField HeaderText="Descripción" DataField="descripcion" />
<asp:BoundField HeaderText="Categoría" DataField="cat_descripcion" />
<asp:BoundField HeaderText="Proveedor" DataField="prov_descripcion" />
<asp:BoundField HeaderText="Cantidad en bodega" DataField="cantidad" />
<asp:BoundField HeaderText="Precio" DataField="precio" />
<asp:TemplateField HeaderText="Acciones">
<ItemTemplate>
<asp:ImageButton ID="imgMovimientos" runat="server"
CommandName="Movimientos" CommandArgument='<%#
DataBinder.Eval(Container.DataItem, "codigo_producto") %>'
ToolTip="Movimientos" />
<asp:ImageButton ID="imgAgregar" runat="server"
CommandName="Agregar" CommandArgument='<%#
DataBinder.Eval(Container.DataItem, "id_producto") %>'
ToolTip="Mantención saldo" />
<asp:ImageButton ID="imgEliminar" runat="server"
CommandName="Eliminar" CommandArgument='<%#
DataBinder.Eval(Container.DataItem, "id_producto") %>' ToolTip="Eliminar
producto" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
The template fields, which perform a Redirect to another page when I
clicked in they, using a Rowcommand event and reading the CommandName
and CommandArgument parameters. But neither DataGrid and GridView the
RowCommand event works.
Does not assume that starting from mono 1.2.4, asp.net is 100%
implemented? (I'm running 1.2.5).
There are another way to implement a RowCommand?
Regards.
More information about the Mono-list
mailing list