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