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. any suggestions for the webapplication I am developing involving two list with selections

any suggestions for the webapplication I am developing involving two list with selections

Scheduled Pinned Locked Moved ASP.NET
questiondatabasedata-structurescryptographytutorial
3 Posts 3 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.
  • V Offline
    V Offline
    vjvjvjvj
    wrote on last edited by
    #1

    Hi, I am putting this question because before I go far, i need to decide the correct aproach. On the webform, I need to implement two lists. List A and List B. the items in the List A is populated from database and from it a single item or all items can be selected and picked to List B. from List B, items can be pulled back to List A. Whatever items are in List B, when clicked a save button need to be inserted in the database. List A List B >> item1 > item2 < item3 << [Save button] In list B, I also need to have check box for each row to decide an attribute on it. i.e. list B rows should be editable in that respect. I am not sure which control to implement here. A listview or a gridview? i dont want database operations on each select deselect button. Only when the save button is clicked, insert record in database operation should happen. how should I define the datasets for two lists here? should it be a session variable of virtual table ? or should i go for temporary table in database (but then it remains until the connection is valid). should I apply a hash table? Any suggestions please ? any example? Thanks. vijay

    M A 2 Replies Last reply
    0
    • V vjvjvjvj

      Hi, I am putting this question because before I go far, i need to decide the correct aproach. On the webform, I need to implement two lists. List A and List B. the items in the List A is populated from database and from it a single item or all items can be selected and picked to List B. from List B, items can be pulled back to List A. Whatever items are in List B, when clicked a save button need to be inserted in the database. List A List B >> item1 > item2 < item3 << [Save button] In list B, I also need to have check box for each row to decide an attribute on it. i.e. list B rows should be editable in that respect. I am not sure which control to implement here. A listview or a gridview? i dont want database operations on each select deselect button. Only when the save button is clicked, insert record in database operation should happen. how should I define the datasets for two lists here? should it be a session variable of virtual table ? or should i go for temporary table in database (but then it remains until the connection is valid). should I apply a hash table? Any suggestions please ? any example? Thanks. vijay

      M Offline
      M Offline
      maltova
      wrote on last edited by
      #2

      i think you can make use of labeledit property of listview which enables editing of list items.

      1 Reply Last reply
      0
      • V vjvjvjvj

        Hi, I am putting this question because before I go far, i need to decide the correct aproach. On the webform, I need to implement two lists. List A and List B. the items in the List A is populated from database and from it a single item or all items can be selected and picked to List B. from List B, items can be pulled back to List A. Whatever items are in List B, when clicked a save button need to be inserted in the database. List A List B >> item1 > item2 < item3 << [Save button] In list B, I also need to have check box for each row to decide an attribute on it. i.e. list B rows should be editable in that respect. I am not sure which control to implement here. A listview or a gridview? i dont want database operations on each select deselect button. Only when the save button is clicked, insert record in database operation should happen. how should I define the datasets for two lists here? should it be a session variable of virtual table ? or should i go for temporary table in database (but then it remains until the connection is valid). should I apply a hash table? Any suggestions please ? any example? Thanks. vijay

        A Offline
        A Offline
        Amit M patel
        wrote on last edited by
        #3

        Hi Vijay, You can handle this thing by get listview to put one label or textbox(if required edit) and maintain two separate dataset that can be stored in view state and for final save all dataset from view state need to save in database. OR Rather than dataset we can handle all this stuff by using javascript but that is little bit tricky so that good approach is take listview/gridview and implement all part in update panel so it would avoid full page post back call. Thanks, Amit

        With Regards, Amit Patel 91-9328488961 India

        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