By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,805 Members | 1,653 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,805 IT Pros & Developers. It's quick & easy.

NEWB Q: Do I use a repeater?

P: n/a
I created a web site in ASP that is heavily data driven. On the home page,
http://iheartmypond.com/. The list of categories is gathered from the
database. I grab the distinct top level categories, and show them with the
first five level 1 sub categories. I then loop through the list and using
response.write, I build a table that formats the category lists as shown on
the home page.

I am trying to replicate this in ASPX and having all kinds of problems. I
have been told I cannot use response write to do this, and should use
response.write in ASPX at all. It has been suggested I use a nested repeater
to create this format, but I have not been able to create anything more then
this:

Category
Sub 1
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Tampa .NET Koder" <Ta***********@discussions.microsoft.com> wrote in
message news:BD**********************************@microsof t.com...
You can probably go and look at the datalist. If the repeater isn't giving

you what you want. Or, you can use string concantenation to add the HTML
text to a string and then output this on the aspx page in a literal control
or a label. I will see if anyone has any other suggestions
<snip>

I have not been able to get the datalist nor the repeater to do what I want,
but admitedly I am a newb to .NET, so it is probably me. This is why I am
posting. I am hoping someone can point me towards an example. The idea of
the label or text box may work if I can embed some more complex formating.
I'll try that, thanks.

BV.
Nov 18 '05 #2

P: n/a
Or you can get the data as an xml file using getxml from the dataset, create an xslt file for the style sheet. Create just a label on the aspx Then use xpathdocument and xmltransform objects to feed this into the label.

Dynamic Help is gives a great deal more on Repeater controls etc

--
Ibrahim

"Tampa .NET Koder" wrote:
You can probably go and look at the datalist. If the repeater isn't giving you what you want. Or, you can use string concantenation to add the HTML text to a string and then output this on the aspx page in a literal control or a label. I will see if anyone has any other suggestions

"Benign Vanilla" wrote:
I created a web site in ASP that is heavily data driven. On the home page,
http://iheartmypond.com/. The list of categories is gathered from the
database. I grab the distinct top level categories, and show them with the
first five level 1 sub categories. I then loop through the list and using
response.write, I build a table that formats the category lists as shown on
the home page.

I am trying to replicate this in ASPX and having all kinds of problems. I
have been told I cannot use response write to do this, and should use
response.write in ASPX at all. It has been suggested I use a nested repeater
to create this format, but I have not been able to create anything more then
this:

Category
Sub 1
.
.
.

Category 2
Sub 1
.
.
.

Category 3
Sub 1
.
.
.

Can anyone offer some advice?

BV.

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.