Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_espanol thread: ayuda por favor Databinder


Message #1 by "Abiezer Matos" <negrabichuela@y...> on Fri, 11 Oct 2002 17:25:44
hola,  AYUDA PLEASE

estoy trayendo unos datos con  <asp:HyperLinkColumn 
DataNavigateUrlField="requisicionID" 
DataNavigateUrlFormatString="Estatus.aspx?id={0}" Text="Asignar" />

en un datagrid pero cuando trato de hacer un databinder de esta forma:

txtProducto.Text = DataBinder.Eval(DS, "Tables[requisicion].defaultview.
[0].Producto")

ME DA ESTE ERROR: 
=================================================================
Index 0 is not non-negative and below total rows count. 

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.IndexOutOfRangeException: Index 0 is not non-
negative and below total rows count.

Source Error: 


Line 152:            MyCommand.Fill(DS, "requisicion")
Line 153:
Line 154:            txtProducto.Text = DataBinder.Eval(DS, "Tables
[requisicion].defaultview.[0].Producto")
Line 155:            'txtProducto.Text = DataBinder.Eval(DS, "Tables
[Requisicion].DefaultView.[0].Producto")
Line 156:            'txtDescrip1.Text = DataBinder.Eval(DS, "Tables
[Requisicion].DefaultView.[0].Descripcion")
 


  Return to Index