Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Profile in ASP.NET2.0 - Getting Items from multiple arrayLists

Profile in ASP.NET2.0 - Getting Items from multiple arrayLists

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netdata-structures
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kloepper
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups