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. Design Ideas - List Of Custom controls.

Design Ideas - List Of Custom controls.

Scheduled Pinned Locked Moved ASP.NET
helpcsharpgraphicsdesigndata-structures
2 Posts 2 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.
  • F Offline
    F Offline
    Forbiddenx
    wrote on last edited by
    #1

    Ok, I have been fighting with coming up with a solution here. The problem I need to solve. I have a list, lets just say for example... a custom control.. contains a textbox a, and b. Ok, I store this in a generic list... I can add more and more of these items in that list.. I need to move them up and down... and also hook in call backs.. I need to remember what items are in the list.. and their values on each post back.. I solved this by setting their ids and storing them in a viewstate.. and then re-creating them each time.. works great.. but can only happen in Page_Load and since that happens before click... + and - cannot manipulate the order of the list because its already rendered out and events are hooked so I cant move it.. out that I know of. Now, I have wrote a ton of code... and I can get some of it working but due to life cycle hell.. Its not all working... so I am going back to the drawing board here and figured I would ask other developers for their opinions on a solution. Need to stack dynamic controls with call backs and store their values across post backs.. users can add and remove.. and also order the controls in a list.. Any ideas on possible solutions to this issue in .net that maybe I did not think of ?

    =)

    A 1 Reply Last reply
    0
    • F Forbiddenx

      Ok, I have been fighting with coming up with a solution here. The problem I need to solve. I have a list, lets just say for example... a custom control.. contains a textbox a, and b. Ok, I store this in a generic list... I can add more and more of these items in that list.. I need to move them up and down... and also hook in call backs.. I need to remember what items are in the list.. and their values on each post back.. I solved this by setting their ids and storing them in a viewstate.. and then re-creating them each time.. works great.. but can only happen in Page_Load and since that happens before click... + and - cannot manipulate the order of the list because its already rendered out and events are hooked so I cant move it.. out that I know of. Now, I have wrote a ton of code... and I can get some of it working but due to life cycle hell.. Its not all working... so I am going back to the drawing board here and figured I would ask other developers for their opinions on a solution. Need to stack dynamic controls with call backs and store their values across post backs.. users can add and remove.. and also order the controls in a list.. Any ideas on possible solutions to this issue in .net that maybe I did not think of ?

      =)

      A Offline
      A Offline
      AmitGajjar
      wrote on last edited by
      #2

      Can you give us some idea on which portion of code/functionality is not working in your case ?

      Thanks -Amit Gajjar

      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