Results 1 to 7 of 7

Thread: Recordcount in ASP

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2004
    Location
    Philippines
    Posts
    149

    Recordcount in ASP

    Hi there,
    I'm trying to create a simple login page with a typical username and password. BUt I can't seem to find the recordcount function in asp.net. Is there any alternative for this one. Thanks

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Recordcount in ASP

    Use a dataset to retrieve your data, then count its rows.

    DataSet1.Tables(0).Rows.Count

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2004
    Location
    Philippines
    Posts
    149

    Re: Recordcount in ASP

    Thanks for the reply ... can you post an example.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Recordcount in ASP

    I think the best route for you is to go through an ADO.NET Tutorial.

    Once you do that (it won't take long), you will figure out how to populate a dataset. Understanding how to do that is vital for your own future.

    After that you can use the code I showed above to get a recordcount.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2004
    Location
    Philippines
    Posts
    149

    Re: Recordcount in ASP

    Quote Originally Posted by mendhak
    I think the best route for you is to go through an ADO.NET Tutorial.

    Once you do that (it won't take long), you will figure out how to populate a dataset. Understanding how to do that is vital for your own future.

    After that you can use the code I showed above to get a recordcount.
    Thanks I just did that ... It's a bit different than VB. Thanks for helping us noobs

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Recordcount in ASP

    Yeah, the only thing VB6 and VB.NET share in common is a two letters and a common syntax, but the framework is relatively new.

  7. #7
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    617

    Re: Recordcount in ASP

    bwahahahahaha VB6 and VB.NET share in common is a two letters "VB"

    I AGREE!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width