Get record count from ObjectDataSource

/ Published in: VB.NET
Save to your folder(s)

Copy this code and paste it in your HTML
  1. Private Sub ObjectDataSource1_Selected(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs) Handles ObjectDataSource1.Selected
  2. Dim numRows As Integer = (e.ReturnValue).Tables(0).Rows.Count
  3. End Sub


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.