Comunque, il problema qui è che stai usando un AccessDataSource e non selezionando i records "a mano".
Nel Page_Load Prova anche:
codice:Sub Page_Load(ByVal Sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim dv as System.Data.DataView = AccessDataSource1.Select(DataSourceSelectArguments.Empty) Label2.Text = dv.ToTable.Rows.Count.ToString End Sub
Dove Label2 è una <asp:label id="Label2" runat="server" />
che metti dove vuoi sulla pagina..

Rispondi quotando
