62,271
社区成员
发帖
与我相关
我的任务
分享
<asp:Button ID="btnSubmit" runat="server" Text="提交" OnClick="btnSubmit_Click" CommandArgument='<%#Container.ItemIndex %>'/>
int id = Convert.ToInt32(((Button)sender).CommandArgument);
TextBox myTextBox = new TextBox();
myTextBox = (TextBox)rpMessages.Items[id].FindControl("txtComment");