Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 284917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:29:58+00:00 2026-05-12T05:29:58+00:00

I have an AjaxControlToolkit ReorderList bound by a SQLDataSource to a table with the

  • 0

I have an AjaxControlToolkit ReorderList bound by a SQLDataSource to a table with the following schema:

OrgID   MilestoneID   Name   Priority

The Priority field is attached to the ReorderList as its SortOrderField. OrgID is specific to each user that logs in. The idea is that there is a different list of Milestones for each Org.

I am using no code behind. In the EditItemTemplate i have two ImageButtons for Update and Cancel. When I click Update the Name of the milestone gets updated but the Priority gets set to null. I cannot figure out why this is happening.

Here is the source code for the ReorderList and its SQLDataSource:

<cc1:ReorderList ID="ReorderList1" runat="server" AllowReorder="True" 
            CssClass="reorderStyle" DataKeyField="MilestoneID" 
            DataSourceID="SqlDataSource2"
            OnItemDataBound="ReorderList1_ItemDataBound" 
            OnItemReorder="ReorderList1_ItemReorder" PostBackOnReorder="True" 
                    SortOrderField="Priority" Width="400px">
                    <ItemTemplate>
                        <asp:ImageButton ID="ImageButton2" runat="server" CommandName="Edit" 
                            ImageUrl="~/Images/edit.gif" />
                        <asp:Label ID="Label1" runat="server"
                    Text='<%# Eval("Name") %>' 
                    ForeColor="Navy" Font-Names="Arial" />
                    </ItemTemplate>
                    <DragHandleTemplate>
                        <img src="../Images/GrabIcon.GIF" style="cursor: move" />&nbsp;
                    </DragHandleTemplate>
                    <InsertItemTemplate>
                    </InsertItemTemplate>
                    <EmptyListTemplate>
                        <asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Italic="False" ForeColor="Red"
                    Text="There are no Associated Milestones currently in the database"></asp:Label>
                    </EmptyListTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Name") %>'></asp:TextBox>
                        <asp:ImageButton ID="ImageButton1" runat="server" CommandName="Update" 
                            ImageUrl="~/Images/save.gif" />
                        &nbsp;
                        <asp:ImageButton ID="ImageButton3" runat="server" CommandName="Cancel" 
                            ImageUrl="~/Images/cancel.gif" />
                    </EditItemTemplate>
                </cc1:ReorderList>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:MyConnectionString %>" 
                    DeleteCommand="DELETE FROM [Milestones] WHERE [MilestoneID] = @MilestoneID" 
                    InsertCommand="INSERT INTO [Milestones] ([OrgID], [Name], [Priority]) VALUES (@OrgID, @Name, @Priority)" 
                    SelectCommand="SELECT MilestoneID, [Name], [Priority] FROM [Milestones] WHERE OrgID = @OrgID ORDER BY [Priority]" 

                    UpdateCommand="UPDATE [Milestones] SET [Name] = @Name, Priority = @Priority WHERE [MilestoneID] = @MilestoneID">
                    <SelectParameters>
                        <asp:ProfileParameter Name="OrgID" PropertyName="OrgID" />
                    </SelectParameters>
                    <DeleteParameters>
                        <asp:Parameter DbType="Guid" Name="MilestoneID" />
                    </DeleteParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="Priority" Type="Int32" />
                        <asp:Parameter Name="Name" Type="String" />
                        <asp:Parameter DbType="Guid" Name="MilestoneID" />
                    </UpdateParameters>
                    <InsertParameters>
                        <asp:ProfileParameter Name="OrgID" PropertyName="OrgID" />
                        <asp:Parameter Name="Name" Type="String" />
                        <asp:Parameter Name="Priority" Type="Int32" />
                    </InsertParameters>
                </asp:SqlDataSource>

Any ideas why the Name would get updated but the Priority would not?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:29:58+00:00Added an answer on May 12, 2026 at 5:29 am

    I haven’t used the ReoRder lister control, but would have thought you still need to Bind to Priority to have it sent to your DataSource? Eg.

    <asp:TextBox ID="TextBoxPriorty" runat="server" Text='<%# Bind("Priority") %>'></asp:TextBox>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to get a basic reorderlist working following this guide ->
I have a simple Asp.NET webform with a TextBox. I have attached an AjaxControlToolkit
I have an AjaxControlToolkit.AutoCompleteExtender control attached to a textbox, and three radio buttons. When
I have an AjaxControlToolKit TabContainer with 2 tabs that I load via a custom
I have a website that uses the AjaxControlToolkit. I'm making some parallel iPhone-friendly pages
In have my application configured in asp.net. I am using ajaxcontroltoolkit. After building the
How to change the bg color of an ajaxcontroltoolkit balloon extender? I have a
This is what I'm talking about: http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ComboBox/ComboBox.aspx basically I want to have a drop
I have added AjaxControlToolKit.dll to my web project and using couple of controls on
I have two different version dll of ajaxcontroltoolkit in a project, i can not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.