0
<asp:repeater id="rpt" run="server">
<ItemTemplate>
<asp:LinkButton id="Delete" runat="server" OnCommand="Delete_Command"></asp:linkButton>
<asp:label id="lblMessage" run="server">
</ItemTemplate>
</asp:repeater>
代碼隱藏Repeater控件:如何獲取到標籤的引用代碼隱藏
protected void Delete_Command(object sender, CommandEventArgument e)
{
}
我怎樣才能在DELETE_COMMAND了「lblMessage」的參考?
http://forums.asp.net/t/1150079.aspx/1的 –
可能重複[如何獲得在代碼中引用的標籤,repeter項目背後(HTTP ://stackoverflow.com/questions/17541206/how-to-get-reference-to-the-label-in-repeter-item-in-code-behind) – user1429080