Skip to main content
Inspiring
November 28, 2006
質問

could someone give me some ASP help please?

  • November 28, 2006
  • 返信数 3.
  • 241 ビュー
Hello, I'm useless at coding, so would be very grateful if someone could
help me with this piece of ASP code.

I've got a recordset which returns records with the following fields:
CategoryName, ForumName, Last_Entry_Date.

There are many ForumNames to one CategoryName

I was using Tom Muck's simulated nested repeat which on the surface was
doing the job, but it gave me problems when it came to styling the table
because it gives me extra table rows.

I would like to put each category in a separate table. E.g.

Table header: Category Name 1
Table row: Forum 1 Last_Entry_Date
Table row: Forum 2 Last_Entry_Date
Table row: Forum 3 Last_Entry_Date

Table header: Category Name 2
Table row: Forum 4 Last_Entry_Date
Table row: Forum 5 Last_Entry_Date
Table row: Forum 6 Last_Entry_Date

I guess I need to say for each category write a table with the category
name in the table header cell, then have a repeat region to display the
list of forums for that category, but I don't know how to write this loop.

Can anyone help me please?
Thanks
Vix
このトピックへの返信は締め切られました。

返信数 3

Inspiring
November 29, 2006
It's OK - I found a tutorial on the net for nested repeat regions which
has sorted out my issue.

Thanks anyway.

IR wrote:
> I had to do this once, long ago.
>
> I created one long repeat region, and embedded some code to check when the
> Category changed along with an IF statement to change the style of the row.
> If the Category was different from the previous category, it would display
> the name, and highlight the row with a background color so it would stand
> out.
>
> Gave a look like this:
>
> **CATEGORY 1**
> item1
> item2
> item3
> **CATEGORY 2**
> item1
> item2
>
> Not sure if it's what you're looking for.
>
>
>
> "Vix" <user@example.net> wrote in message
> news:eki880$dag$1@forums.macromedia.com...
>> Hello, I'm useless at coding, so would be very grateful if someone could
>> help me with this piece of ASP code.
>>
>> I've got a recordset which returns records with the following fields:
>> CategoryName, ForumName, Last_Entry_Date.
>>
>> There are many ForumNames to one CategoryName
>>
>> I was using Tom Muck's simulated nested repeat which on the surface was
>> doing the job, but it gave me problems when it came to styling the table
>> because it gives me extra table rows.
>>
>> I would like to put each category in a separate table. E.g.
>>
>> Table header: Category Name 1
>> Table row: Forum 1 Last_Entry_Date
>> Table row: Forum 2 Last_Entry_Date
>> Table row: Forum 3 Last_Entry_Date
>>
>> Table header: Category Name 2
>> Table row: Forum 4 Last_Entry_Date
>> Table row: Forum 5 Last_Entry_Date
>> Table row: Forum 6 Last_Entry_Date
>>
>> I guess I need to say for each category write a table with the category
>> name in the table header cell, then have a repeat region to display the
>> list of forums for that category, but I don't know how to write this loop.
>>
>> Can anyone help me please?
>> Thanks
>> Vix
>
>
Inspiring
November 29, 2006
Yes, that sounds just like what I need to do! i don't suppose you'd be
willing to share how you did it would you?

Vix

R wrote:
> I had to do this once, long ago.
>
> I created one long repeat region, and embedded some code to check when the
> Category changed along with an IF statement to change the style of the row.
> If the Category was different from the previous category, it would display
> the name, and highlight the row with a background color so it would stand
> out.
>
> Gave a look like this:
>
> **CATEGORY 1**
> item1
> item2
> item3
> **CATEGORY 2**
> item1
> item2
>
> Not sure if it's what you're looking for.
>
>
>
> "Vix" <user@example.net> wrote in message
> news:eki880$dag$1@forums.macromedia.com...
>> Hello, I'm useless at coding, so would be very grateful if someone could
>> help me with this piece of ASP code.
>>
>> I've got a recordset which returns records with the following fields:
>> CategoryName, ForumName, Last_Entry_Date.
>>
>> There are many ForumNames to one CategoryName
>>
>> I was using Tom Muck's simulated nested repeat which on the surface was
>> doing the job, but it gave me problems when it came to styling the table
>> because it gives me extra table rows.
>>
>> I would like to put each category in a separate table. E.g.
>>
>> Table header: Category Name 1
>> Table row: Forum 1 Last_Entry_Date
>> Table row: Forum 2 Last_Entry_Date
>> Table row: Forum 3 Last_Entry_Date
>>
>> Table header: Category Name 2
>> Table row: Forum 4 Last_Entry_Date
>> Table row: Forum 5 Last_Entry_Date
>> Table row: Forum 6 Last_Entry_Date
>>
>> I guess I need to say for each category write a table with the category
>> name in the table header cell, then have a repeat region to display the
>> list of forums for that category, but I don't know how to write this loop.
>>
>> Can anyone help me please?
>> Thanks
>> Vix
>
>
Inspiring
November 29, 2006
I had to do this once, long ago.

I created one long repeat region, and embedded some code to check when the
Category changed along with an IF statement to change the style of the row.
If the Category was different from the previous category, it would display
the name, and highlight the row with a background color so it would stand
out.

Gave a look like this:

**CATEGORY 1**
item1
item2
item3
**CATEGORY 2**
item1
item2

Not sure if it's what you're looking for.



"Vix" <user@example.net> wrote in message
news:eki880$dag$1@forums.macromedia.com...
> Hello, I'm useless at coding, so would be very grateful if someone could
> help me with this piece of ASP code.
>
> I've got a recordset which returns records with the following fields:
> CategoryName, ForumName, Last_Entry_Date.
>
> There are many ForumNames to one CategoryName
>
> I was using Tom Muck's simulated nested repeat which on the surface was
> doing the job, but it gave me problems when it came to styling the table
> because it gives me extra table rows.
>
> I would like to put each category in a separate table. E.g.
>
> Table header: Category Name 1
> Table row: Forum 1 Last_Entry_Date
> Table row: Forum 2 Last_Entry_Date
> Table row: Forum 3 Last_Entry_Date
>
> Table header: Category Name 2
> Table row: Forum 4 Last_Entry_Date
> Table row: Forum 5 Last_Entry_Date
> Table row: Forum 6 Last_Entry_Date
>
> I guess I need to say for each category write a table with the category
> name in the table header cell, then have a repeat region to display the
> list of forums for that category, but I don't know how to write this loop.
>
> Can anyone help me please?
> Thanks
> Vix