Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_espanol thread: ds con un join


Message #1 by "Daniel Chavez" <chavezd@r...> on Thu, 25 Apr 2002 12:41:44 -0500
This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C1EC63.A67B9940
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Mensajeasi es    era eso, gracias por responder!!
  ----- Original Message -----
  From: Guillermo Molina
  To: ASP.Net en Espa=F1ol
  Sent: Thursday, April 25, 2002 12:55 PM
  Subject: [aspx_espanol] RE: ds con un join


  revisa los campos que has declarado en el control datalist o datagrid

  -----Mensaje original-----
  De: Daniel Chavez [mailto:chavezd@r...]
  Enviado el: Thursday, April 25, 2002 11:42 AM
  Para: ASP.Net en Espa=F1ol
  Asunto: [aspx_espanol] ds con un join


    Hola gente tengo una sentencia sql que hace consultas a varias 
tablas
    pero a la hora de formatear el dataset, lo hice con una tabla por 
eso me sale error:

     la sentencia es algo como :
    select cs.Descripcion, i.CompaniaSocio, i.FechaIngreso from 
RS_Incidente i, RS_CompaniaSocio cs where i.CompaniaSocio =3D 
cs.CompaniaSocio 



-------------------------------------------------------------------------
---


    Server Error in '/RoyalWeb/Incidentes' Application.
-------------------------------------------------------------------------
---

    DataBinder.Eval: 'System.Data.DataRowView' does not contain a 
property with the name CompaniaSocio.
    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.Web.HttpException: DataBinder.Eval: 
'System.Data.DataRowView' does not contain a property with the name 
CompaniaSocio.

    Source Error:

Line 199:			cmd.Fill(ds,"RS_Incidente");
Line 200:			dgr_mostrar.DataSource =3D 
ds.Tables["RS_Incidente"].DefaultView;
Line 201:			dgr_mostrar.DataBind();
Line 202:		}
Line 203:
        

    Source File: 
c:\inetpub\wwwroot\royalweb\incidentes\p_rs_incidente_list.aspx.cs    
Line: 201


-------------------------------------------------------------------------
---

    entiendo que el error es causado por el RS_Incidente, cual es la 
sintaxis correcta para operar un dataset que tenga una sentencia sql que 
administre varias tablas?

          Atte.
          Daniel Chavez B
          RoyalSystems SAC
          Cel: 7409455

    ---
    Usted est=E1 suscrito a aspx_espanol como:
    gmolina@s...
    Para darse de baja, env=EDe un mensaje en blanco a
    %%email.unsub%%
  ---
  Usted est=E1 suscrito a aspx_espanol como:
  chavezd@r...
  Para darse de baja, env=EDe un mensaje en blanco a
  %%email.unsub%%



  Return to Index