Profile in ASP.NET2.0 - Getting Items from multiple arrayLists
-
Actually, 2 questions 1)This question concerns extracting information stored in the user profile. In the web.config file I have the following structure, where I plan to make the first element of each arrayList a CategoryName and the subsequent elements, the items in that CategoryName. In order to create a new arrayList of the category names, how can I loop through all the arrayLists to get the first element of each arrayList, ie the CategoryName? Is it even possible to do this? If not, is there another way to create Multiple Categories that each contain an array of items? 2) ArrayList alCategoryNames = new ArrayList(); // Create a new arraylist alCategoryNames.Add(Profile.MyCategories.CatItems_01.GetRange(0,1).ToString()); I'm expecting this to return the first element in the array, but I get this instead: System.Collections.ArrayList+Range Anyone know what I'm doing wrong? Thanks, Paul