Reorderlist not updating dating kate on gta iv


If the user wanted to change the order, he or she would change the numbers in the textboxes and then press a Save button which updated the priority order for the list.

reorderlist not updating-36reorderlist not updating-34reorderlist not updating-21

I wanted to bind this with an Object Data Source control and it just wasn't working.

Well I eventually figured it out and the first thing I thought of was I needed to write an article about this.

It is pictured here: So next create a class in App_Code for the Object Data Source to bind to. First we need to have a method return a Data Set containing the wish data in from the database.

Here is the code for that: Since the order number from the Reorder List needs to be saved back in the database, we also need an Update method for our Object Data Source control.

Notice that the Select Method is the method that returns the Data Set.