Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/02/2012, 19:25
mrprogman
 
Fecha de Ingreso: junio-2011
Mensajes: 329
Antigüedad: 12 años, 10 meses
Puntos: 2
Error Sqldatasource

Como puedo validar si un sqldatasource este vacio..tengo el siguiente codigo pero me marca este error: Object reference not set to an instance of an object.

Dim fff As Data.DataView = SqlDataSource56.Select(DataSourceSelectArguments.E mpty)
If fff.Table.Rows(0)("column1").GetType.Name = "DBNull" Then
TextBox69.Text = "0"
Else
TextBox69.Text = fff.ToTable.Rows(0)("Column1")
End If

tambien puse esta validacion

'If bb.Table.Rows.Count <= " " Then

pero me sigue marcando el mismo error...el SqlDataSource56 apunta a un dropdownlist..gracias por sus respuestas