Vincent Stack
asked on
How to set ajax reorderlist to edit mode
I have a reorder list but I want to add a link button to change the mode to Edit. How do i do this?
I've tried this sub but I can't get the event to fire.
Protected Sub ReorderList1_EditCommand(B yVal sender As Object, ByVal e As ReorderListCommandEventArg s) Handles ReorderList1.EditCommand
If e.CommandName = "Edit" Then
Response.Write("Im here")
End If
End Sub
reorderlist code:
<cc1:ReorderList ID="ReorderList1" runat="server"
AllowReorder="true" CssClass="ReOrderControlSt yle" DataKeyField="CategoryID"
DataSourceID="SqlDataSourc e1" DragHandleAlignment="left"
ItemInsertLocation="beginn ing" SortOrderField="Order" Height="97px"
Width="153px" PostBackOnReorder="True">
<ItemTemplate>
<asp:Label ID="lblCategoryName" runat="server" Text='<%# Eval("CategoryName") %>' />
<asp:LinkButton ID="linkButton1" runat="server" CommandName="Edit" >Edit</asp:LinkButton>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("CatgoryName") %>'></asp:TextBox>
</EditItemTemplate>
</cc1:ReorderList>
I've tried this sub but I can't get the event to fire.
Protected Sub ReorderList1_EditCommand(B
If e.CommandName = "Edit" Then
Response.Write("Im here")
End If
End Sub
reorderlist code:
<cc1:ReorderList ID="ReorderList1" runat="server"
AllowReorder="true" CssClass="ReOrderControlSt
DataSourceID="SqlDataSourc
ItemInsertLocation="beginn
Width="153px" PostBackOnReorder="True">
<ItemTemplate>
<asp:Label ID="lblCategoryName" runat="server" Text='<%# Eval("CategoryName") %>' />
<asp:LinkButton ID="linkButton1" runat="server" CommandName="Edit" >Edit</asp:LinkButton>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("CatgoryName") %>'></asp:TextBox>
</EditItemTemplate>
</cc1:ReorderList>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You are welcome, and may I ask why did you give me B?