Re: what's the point of using a dataset in ASP.net?

Discussion in 'ASP .Net' started by Naveen K Kohli, Jun 27, 2003.

  1. Ofcourse.. if you are using the data as read only. But if you have to go
    back and froth between records then you can't do that with DataReader.

    --
    Naveen K Kohli
    http://www.netomatix.com
    "neil m" <> wrote in message
    news:6x2La.308229$...
    > what's the point of using a dataset in ASP.net?
    >
    > why not just use datareader?
    >
    > thx
    >
    > nm
    >
    >
    Naveen K Kohli, Jun 27, 2003
    #1
    1. Advertising

  2. Naveen K Kohli

    neil m Guest

    how is data not read-only if you are showing it as an HTML webpage?

    what do you mean going back and forth between records?


    "Naveen K Kohli" <> wrote in message
    news:%...
    > Ofcourse.. if you are using the data as read only. But if you have to go
    > back and froth between records then you can't do that with DataReader.
    >
    > --
    > Naveen K Kohli
    > http://www.netomatix.com
    > "neil m" <> wrote in message
    > news:6x2La.308229$...
    > > what's the point of using a dataset in ASP.net?
    > >
    > > why not just use datareader?
    > >
    > > thx
    > >
    > > nm
    > >
    > >

    >
    >
    neil m, Jun 27, 2003
    #2
    1. Advertising

  3. neil m wrote:

    > how is data not read-only if you are showing it as an HTML webpage?


    You can store data from database to dataset, investigate it, perform
    complicated operation on dataset (add, delete, update, just like it is
    database itself) and simply call some methods to update the database
    accordingly to changes you made to dataset.

    > what do you mean going back and forth between records?


    Every time you call datareader.read() method, one row from database is
    transferred to your asp.net code. You can only read it (can't change it), you
    can't (without repeating the query) go back to previous row, once you read
    the next row.

    HTH, Ante
    Ante Perkovic, Jun 28, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gopi

    point to point protocol

    Gopi, Jul 13, 2004, in forum: VHDL
    Replies:
    1
    Views:
    470
    Mike Treseler
    Jul 13, 2004
  2. H aka N
    Replies:
    15
    Views:
    15,652
    Ben Jones
    Mar 2, 2006
  3. Terance Emory
    Replies:
    0
    Views:
    449
    Terance Emory
    Jun 28, 2003
  4. Kevin Spencer
    Replies:
    0
    Views:
    427
    Kevin Spencer
    Jun 30, 2003
  5. Saraswati lakki
    Replies:
    0
    Views:
    1,322
    Saraswati lakki
    Jan 6, 2012
Loading...

Share This Page