1 <td> 2 3 <asp:TextBox ID="txtOr" runat="server" Text=‘<%#Eval("au_TorgId") %>‘ /> 4 <asp:Button ID="Button1" runat="server" Text="保存" CommandArgument=‘<%#Eval("au_ID") %>‘ CommandName="btnUpdate" /></td> 5 6 7 8 string Id = e.CommandArgument.ToString(); 9 TextBox txt=null; 10 if (e.CommandName=="btnUpdate") 11 { 12 txt = e.Item.FindControl("txtOr") as TextBox; 13 }
原文地址:https://www.cnblogs.com/feisuccess/p/8459795.html
时间: 2024-10-04 06:37:01