<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"
OnItemDataBound="Repeater1_ItemDatabound">
<ItemTemplate>
<tr>
<td>
<%#Eval("Priority") %>
</td>
<td>
<%#Eval("ProjectName") %>
</td>
<td>
<%#Eval("DisplayName") %>
</td>
<td>
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl='<%# Eval("EmailID" , "mailto:{0}") %>'
Text='<%# Eval("EmailID") %>'></asp:HyperLink>
</td>
<td>
<%#Eval("ProjectID") %>
</td>
<td>
<asp:Button ID="btnCompleteProject" runat="server" Text="Close Project"
OnCommand="CloseProject" CommandName="Close"
CommandArgument='<%# Eval("ProjectID") %>' />
How do I get the ProjectID of the Row in which I click the close Project Button(btnCompleteProject) ?
You can add an ItemCommand event to the repeater control and add a cole something like this:
And add the repeater tag, you event: