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

URL: http://codefinds.blogspot.com/2008/12/get-record-count-from-objectdatasource.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.