.aspx
......
<asp:Repeater id="Repeater1" runat="server" OnItemCommand="OnItemCommand1">
......
<asp:Button CommandName="update" ID="btn_update" Text="update" Runat="server"></asp:Button>
......
.cs
......
public void   OnItemCommand1(Object sender,System.Web.UI.WebControls.RepeaterCommandEventArgs e)
{
if(e.CommandName  ==   "update")
Response.Write("<script>alert('asdf')</script>");
}
......
就是按repeater中的button 无法触发OnitemCommand事件..另:如果想获取repeater中的对应的那条记录的值的话,一定要用FindControl么?也就是说一定要把欲获取的值放到一个控件中么?