Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > something like recordcount?

Reply
Thread Tools

something like recordcount?

 
 
phil
Guest
Posts: n/a
 
      05-08-2006
Hi,

Does it exist a function or method like 'recordcount' of the asp 2.0?
Thanks
Phil


 
Reply With Quote
 
 
 
 
Bruno Alexandre
Guest
Posts: n/a
 
      05-08-2006
Yes but you need to use a way to get it

dim dReader as SqlDataReader

command.open()
dReader = command.ExecuteReader()

dReader.VisibleFieldCount() returns an integer with the number of rows

you can read all the fields with

While dReader.read()
name = dReader.Item("columnName")
End While

--

Bruno Alexandre
(a Portuguese in Denmark)



"phil" <(E-Mail Removed)> escreveu na mensagem
news:(E-Mail Removed)...
> Hi,
>
> Does it exist a function or method like 'recordcount' of the asp 2.0?
> Thanks
> Phil
>
>



 
Reply With Quote
 
 
 
 
phil
Guest
Posts: n/a
 
      05-08-2006
Thanks

"Bruno Alexandre" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Yes but you need to use a way to get it
>
> dim dReader as SqlDataReader
>
> command.open()
> dReader = command.ExecuteReader()
>
> dReader.VisibleFieldCount() returns an integer with the number of rows
>
> you can read all the fields with
>
> While dReader.read()
> name = dReader.Item("columnName")
> End While
>
> --
>
> Bruno Alexandre
> (a Portuguese in Denmark)
>
>
>
> "phil" <(E-Mail Removed)> escreveu na mensagem
> news:(E-Mail Removed)...
> > Hi,
> >
> > Does it exist a function or method like 'recordcount' of the asp 2.0?
> > Thanks
> > Phil
> >
> >

>
>



 
Reply With Quote
 
phil
Guest
Posts: n/a
 
      05-09-2006
Hi Bruno,

I tried dReader.VisibleFieldCount() but this gives the number of fields, not
the number of records (or rows).

"Bruno Alexandre" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Yes but you need to use a way to get it
>
> dim dReader as SqlDataReader
>
> command.open()
> dReader = command.ExecuteReader()
>
> dReader.VisibleFieldCount() returns an integer with the number of rows
>
> you can read all the fields with
>
> While dReader.read()
> name = dReader.Item("columnName")
> End While
>
> --
>
> Bruno Alexandre
> (a Portuguese in Denmark)
>
>
>
> "phil" <(E-Mail Removed)> escreveu na mensagem
> news:(E-Mail Removed)...
> > Hi,
> >
> > Does it exist a function or method like 'recordcount' of the asp 2.0?
> > Thanks
> > Phil
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can I overload operators like "=>", "->" or something like that? dmitrey Python 5 04-20-2012 05:49 PM
XPath query for <?define something="something" ?> Pekka Järvinen XML 2 04-29-2008 08:12 PM
How to find and replace something that is nested inside something else? alainfri@gmail.com Perl Misc 4 05-31-2007 11:50 PM
object-like macro used like function-like macro Patrick Kowalzick C++ 5 03-14-2006 03:30 PM
umm... something... template(s)... something else... pointer(s)... and such... 0.o yah, I'm hopeless and clueless o.0 C++ 4 10-13-2004 10:34 PM



Advertisments