创建DataList视图时出现问题 [英] Problem with Creating DataList view
问题描述
我想制作一个具有数据列表的.ascx控件,在该控件中我必须在其中打印类别列表和子类别列表.我已经使用中继器显示数据,但是在数据列表下使用它会显示错误
错误是:在此上下文下即数据列表中找不到中继器控件.
所以任何人都可以在这方面帮助我....
我也无法以
格式携带数据
类别1
子类别1
子类别2
类别2
子类别11
子类别22
谁能告诉我我必须使用哪种数据结构来存储这种格式的数据..
在此先感谢!!!!
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 !!!!
推荐答案
您好Atul,
我将建议使用嵌套数据列表.请参考以下内容:
ASP-Net-Nested-DataList-Control-using-C-锋利的 [ ^ ]
希望对您有帮助.
问候!
阿曼
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
这篇关于创建DataList视图时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!