newbie asp/ado.net question.

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default newbie asp/ado.net question.


    Hi,

    I am very new to .net but not new to asp or ado.

    I am just wondering the best way to do the following...

    I have a database which stores a list of messages/threads (like google
    newsgroups threads). I want to display these on a webpage where each message
    is a hyperlink, and each message has a treeview drill-down mechanism where
    you can see replies for a particular message (just like in outlook express
    newsgroups).

    i have an aspx page which i want to display the data and an object which
    should do all the retrieving/updating of data.

    what is the best way to do this (in terms of using datareader, dataset,
    etc). and where would be the logical place to dim these objects (asp or
    object)?

    one more thing... i would like to return the data from the object in XML
    (unless .net has a newer easier way in presenting such information!)

    thanks.


    linz Guest

  2. Similar Questions and Discussions

    1. Newbie Question: Biz Card Template Question
      Hi, I got the Pagemaker PlugIn - I am using one of the templates for Business Cards - the elements appear to be grouped (bound box all around when I...
    2. A newbie with a newbie question
      Good afternoon everyone, My Name is Dusty I am new to this forum and pretty new to Acrobat. I have Acrobat 9 running on an IMAC running 10.5.2 I...
    3. newbie question,,,
      I converted an AVI to FLV in the encoder. The resulsting file only opens a blank flash 8 player. I can't even get it to play within the flash app....
    4. Pen Tool Use Question. (Embarrassingly Newbie Question)
      I'm currently using Flash MX and whenever I choose the Pen Tool instead of the pen nib with the small "x" beside it that supposed to show up on...
    5. Newbie OO question
      In article <EbkRa.331382$fC.2436421@news.easynews.com>, "Ed W" <dodgynewsgroups@ewildgoose.demon.co.uk> wrote: perldoc perltoot it's all you...
  3. #2

    Default Re: newbie asp/ado.net question.

    One of the great things about .NET is the fact that there are tons of ways
    to accomplish the same task, so I'm sure you will get tons of answers. ;-)

    That being said, if all you want to do, is format the equivalent of a
    forward-looking ado recordset, then I would just databind a DataReader to a
    DataList or Repeater.

    However, if you want to go with XML, I would bring back a dataset, and then
    use the WriteXML() method.

    hth,
    Dave
    [url]www.aspNetEmail.com[/url]


    "linz" <linz@nospam.com> wrote in message
    news:uy8yVwZQDHA.2480@tk2msftngp13.phx.gbl...
    >
    > Hi,
    >
    > I am very new to .net but not new to asp or ado.
    >
    > I am just wondering the best way to do the following...
    >
    > I have a database which stores a list of messages/threads (like google
    > newsgroups threads). I want to display these on a webpage where each
    message
    > is a hyperlink, and each message has a treeview drill-down mechanism where
    > you can see replies for a particular message (just like in outlook express
    > newsgroups).
    >
    > i have an aspx page which i want to display the data and an object which
    > should do all the retrieving/updating of data.
    >
    > what is the best way to do this (in terms of using datareader, dataset,
    > etc). and where would be the logical place to dim these objects (asp or
    > object)?
    >
    > one more thing... i would like to return the data from the object in XML
    > (unless .net has a newer easier way in presenting such information!)
    >
    > thanks.
    >
    >

    dave wanta Guest

  4. #3

    Default Re: newbie asp/ado.net question.

    hmm... kinda hard to answer, because I don't know enough about your app.

    You wanted XML, I was just making you aware there is a WriteXML() method on
    the DataSet, that's all.

    If you can, I would return all the data at once, as much as makes sense.
    Database connections are relatively expensive, so I would try to minimize
    them to a certain extent.

    I don't understand what you mean about scope, as the architecture of the web
    as stayed the same (still stateless), just the way we are designing apps has
    changed 1000%.

    You may want to try a different ideas, and ask about more opinions.

    hth,
    Dave
    [url]www.aspNetEmail.com[/url]




    "phillipa" <phillipa@nospamming.com> wrote in message
    news:urfF0SaQDHA.4024@tk2msftngp13.phx.gbl...
    > thanks, so do you mean dim a dataset in my object and use it to return xml
    > back to the aspx page.?
    >
    > what about scope? does it work in the same way as classic asp? (ie:
    > everytime a user clicks on a message, should i be recreating a connection
    to
    > the database in my object and populating the message data into a dataset
    > then writing the xml back to the aspx page?)
    >
    > this is the bit i am unclear about.
    >
    >
    > "dave wanta" <nospam@nospam.com> wrote in message
    > news:%23r09syZQDHA.2460@TK2MSFTNGP10.phx.gbl...
    > > One of the great things about .NET is the fact that there are tons of
    ways
    > > to accomplish the same task, so I'm sure you will get tons of answers.
    ;-)
    > >
    > > That being said, if all you want to do, is format the equivalent of a
    > > forward-looking ado recordset, then I would just databind a DataReader
    to
    > a
    > > DataList or Repeater.
    > >
    > > However, if you want to go with XML, I would bring back a dataset, and
    > then
    > > use the WriteXML() method.
    > >
    > > hth,
    > > Dave
    > > [url]www.aspNetEmail.com[/url]
    > >
    > >
    > > "linz" <linz@nospam.com> wrote in message
    > > news:uy8yVwZQDHA.2480@tk2msftngp13.phx.gbl...
    > > >
    > > > Hi,
    > > >
    > > > I am very new to .net but not new to asp or ado.
    > > >
    > > > I am just wondering the best way to do the following...
    > > >
    > > > I have a database which stores a list of messages/threads (like google
    > > > newsgroups threads). I want to display these on a webpage where each
    > > message
    > > > is a hyperlink, and each message has a treeview drill-down mechanism
    > where
    > > > you can see replies for a particular message (just like in outlook
    > express
    > > > newsgroups).
    > > >
    > > > i have an aspx page which i want to display the data and an object
    which
    > > > should do all the retrieving/updating of data.
    > > >
    > > > what is the best way to do this (in terms of using datareader,
    dataset,
    > > > etc). and where would be the logical place to dim these objects (asp
    or
    > > > object)?
    > > >
    > > > one more thing... i would like to return the data from the object in
    XML
    > > > (unless .net has a newer easier way in presenting such information!)
    > > >
    > > > thanks.
    > > >
    > > >
    > >
    > >
    >
    >

    dave wanta Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139