The text of this article is not in this database — only its details are. Read it on the old site: Nested DataList in ASP.NET
12 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Nested DataList in ASP.NET
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
dipika prajapatiPosted Jan 6, 2015, 1:54 AM
but want to know what did this line means this condition if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem)) . please explain
dipika prajapatiPosted Jan 6, 2015, 1:53 AM
sir sorry i get solution read all comment
dipika prajapatiPosted Jan 6, 2015, 1:43 AM
I have a problem with inner datalist bind. i hv category and subcategory table. i add relation but it display all category name but not display all subcategory. means display only even category to subcategory Value...in database all data according category to subcategory then also not display subcategory of odd position.. plz help me.... i have to create dynemic menu to submenu. ihv project about onlineshopping. for that i have to create menu. for example if category Man then subcategory footweare, clothes and all
dipika prajapatiPosted Jan 6, 2015, 1:40 AM
Hello sir
Diego DiasPosted Dec 23, 2012, 1:29 PM
Hello Mst. Kumar. I found the solution. Follow below if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem))
Diego DiasPosted Dec 23, 2012, 1:21 PM
Hello. I try add plus one category, but when i get database values display only two SubCategory and not the three. can you help me? I'm from Brazil. I not write english very well.
Rohatash KumareditedPosted Oct 9, 2012, 11:30 PMEdited Oct 9, 2012, 11:34 PM
Moaatar. This line defines the relation between two tables, one table ds.Tables[0].Columns["CategoryID") Second one is: ds.Tables[1].Columns["CategoryID"]. You can check it using break point.
Moaataz AamerPosted Oct 9, 2012, 3:59 PM
what is this line of code : ds.Relations.Add(new DataRelation("CategoriesRelation", ds.Tables[0].Columns["CategoryID"], ds.Tables[1].Columns["CategoryID"]));
Moaataz AamerPosted Oct 9, 2012, 3:59 PM
what is this line of code : ds.Relations.Add(new DataRelation("CategoriesRelation", ds.Tables[0].Columns["CategoryID"], ds.Tables[1].Columns["CategoryID"]));
Moaataz AamerPosted Oct 9, 2012, 3:59 PM
what is this line of code : ds.Relations.Add(new DataRelation("CategoriesRelation", ds.Tables[0].Columns["CategoryID"], ds.Tables[1].Columns["CategoryID"]));
Lucas OldfieldPosted Jul 17, 2012, 2:17 AM
I had to add Select Case e.Item.ItemType Case ListItemType.AlternatingItem, ListItemType.Item to the ItemDataBound event.. incase anyone has missing binds using alternating CSS styles
Frank LazloPosted May 19, 2012, 2:02 AM
Hello Rohatash, I liked the simplicity of your code, however I've noticed your second category 'Sql Server' does not show any sub categories. I'm experiencing the same problem. The third does category does. Tried AlternateItemTemplate but has the same problem. Do you know what's going on?