Question

A
    a1
    a2
    a3
B
    b1
C
    c1
    c2

How can I do that using nested repeaters? I have a category and a sub-category. But sub-category count is not stable. It depens on it's category. It can be any number 1 to 20.

Was it helpful?

Solution

This article seems to achieve the very same thing.

http://www.codeproject.com/Articles/6140/A-quick-guide-to-using-nested-repeaters-in-ASP-NET

Instead of querying an XML file, you can query a DB or any dataset you like.

OTHER TIPS

You can do that with code-behind - add to each repeater HiddenField and put the id within. on prerender, foreach repeater - set the correct select command.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top