Holas, como puedo solucionar este error: "
No se puede calcular el recuento para un origen de datos que no implementa ICollection. "
este es el codigo que uso en mi pagina:
Código PHP:
Imports System.Data.SqlClient
'--------------------------------
Public cn As New SqlConnection(cno)
Sub Bindgrid()
Dim cmd As New SqlCommand("listar_clientes", cn)
cn.Open()
cmd.CommandType = CommandType.StoredProcedure
Dim drd As SqlDataReader = cmd.ExecuteReader
dgdclientes.DataSource = drd
dgdclientes.DataBind()
End Sub
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not Page.IsPostBack Then
Bindgrid()
End If
End Sub
End Class