linkbutton and postback
I have posted this question in other forums and received only limited feedback.
I have a page with two datalists, call them unassigned and assigned. The items/values for each list come from a SQL table HardwareItems, and the difference between where an item is listed is determined by a Bit Column titled assigned.
The items in the Unassigned list are linkbuttons, so that clicking on an item will populate the 'assigned' Bit column and move the item from the unassigned list to the assigned list. My problem is that autopostback is not available for the linkbutton, so I am currently redirecting to the same page in order to force the datalists to update.
To complicate matters, I have three options for generating the Unasigned list: hardware items by type, hardware items by serial# search, or all hardware items - each having their own button and event which repopulate the same Unassigned datalist. The problem is that by redirecting I wipe out the user's search criteria which generated the Unassigned list, so the user must redo their search before they can pick another item to assign.
I'm not a Java guy - is there an easier way to force these lists to refresh without reloading my whole page and preserving which search method the user used to populate the Unassigned datalist, so that when the list is refreshed the same criteria is used to find the unassigned items?