Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to make an .ascx control having datalist in which i have to print a list of categories and the subcategories in it . I have used the repeater for displaying data but it shows an error while using it under datalist
Error is : repeater control in not found under this context i.e datalist .
so could anyone help me in this ....

also i am unable to bring data in the format

Category1
Subcategory1
Subcategory2

Category2
Subcategory11
Subcategory22

could anyone tell me what datastructure i must use to store data in this format .....



Thanks in Advance !!!!
Posted
Updated 26-Dec-10 4:33am
v2
Comments
#realJSOP 26-Dec-10 10:33am    
Added ASP.Net to the tags. Platform is equally as important as the language being used.

1 solution

Hi Atul,

I will recommend to use nested datalist. Please refer the following:

ASP-Net-Nested-DataList-Control-using-C-sharp[^]

Hope, It will help you.

Regards!
Aman
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900