I am using a JQuery plugin for selection.
Here is the link.
Instead of select,I am using Listbox with setting its multicolumn to true.
I have a save button by which I save the selected items from the listbox in database.
This is working fine.
Code to bind selected list part
private void FillSelectedRole(int siteId,int levelId)
ount_"] = 0;
SkillUpdateRight skUpdateRights = new SkillUpdateRight();
Dictionary<object, object> dictRoleSelected = skUpdateRights.GetSelected
foreach (KeyValuePair<object, object> kvp in dictRoleSelected)
ListItem li = new ListItem(kvp.Value.ToStrin
li.Selected = true;
Now the problem is with validation part,if the selected part has items already in it(bind from database) and user click save,my save query is fired again and the data is duplicated.well I can handle this from sql not to insert but I don't want it to go to my Stopred proc.It should be validated there only.
Another case,if two items are in selected list(bind from database),user remove those items and add different two items,then it should work but if the items present previously are going to save then it should give the message that "Nothing has been changed"