In your repeater include OnItemCommand and on your button include CommandName and CommandArgument
Code:
<asp:Repeater ID="rpProjectList" runat="server" OnItemDataBound="rpProjectList_OnItemDataBound" OnItemCommand="rpProjectList_OnItemCommand" />
<asp:button id="btnDelete" runat="server" Text="Delete" CommandName="Delete" CommandArgument='<%#Eval("Idkey")%>' />
Then in your routine:-
Code:
sub rpProjectList_OnItemCommand(ByVal s As Object, ByVal e As RepeaterItemEventArgs)
If e.CommandName="Delete" then
'Delete record with id e.CommandArgument
End Sub
Hope that helps.
richyrich, July 11th, 2008 07:16 AM
Bookmarks