Ask a Question related to ASP.NET General, Design and Development.
-
linz #1
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
-
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... -
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... -
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.... -
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... -
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... -
dave wanta #2
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...message>
> 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> 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
-
dave wanta #3
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...to> 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 connectionways> 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;-)> > to accomplish the same task, so I'm sure you will get tons of answers.to> >
> > 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 DataReaderwhich> a> then> > DataList or Repeater.
> >
> > However, if you want to go with XML, I would bring back a dataset, and> where> > use the WriteXML() method.
> >
> > hth,
> > Dave
> > [url]www.aspNetEmail.com[/url]
> >
> >
> > "linz" <linz@nospam.com> wrote in message
> > news:uy8yVwZQDHA.2480@tk2msftngp13.phx.gbl...> > message> > >
> > > 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> > > is a hyperlink, and each message has a treeview drill-down mechanism> express> > > you can see replies for a particular message (just like in outlook> > > newsgroups).
> > >
> > > i have an aspx page which i want to display the data and an objectdataset,> > > should do all the retrieving/updating of data.
> > >
> > > what is the best way to do this (in terms of using datareader,or> > > etc). and where would be the logical place to dim these objects (aspXML> > > object)?
> > >
> > > one more thing... i would like to return the data from the object in>> >> > > (unless .net has a newer easier way in presenting such information!)
> > >
> > > thanks.
> > >
> > >
> >
>
dave wanta Guest



Reply With Quote

