<asp:DataList ID="DataList" runat="server">
<EditItemTemplate>
<table>
<tr>
<td rowspan="5" height="70px" width="101px">
<asp:Label ID="photo" runat="server" Text='<%#Eval("photo") %>'></asp:Label>
</td>
<td height="25" align="right" width="92px">
用户名 :
</td>
<td height="25" align="left" width="116px">
<asp:TextBox ID="username" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"username") %>'></asp:TextBox>
</td>
</tr>
</table>
</EditItemTemplate>
</asp:DataList>以上是我前台的代码,我想在后台编辑的时候获得TextBox框里的参数,怎么获取?
<EditItemTemplate>
<table>
<tr>
<td rowspan="5" height="70px" width="101px">
<asp:Label ID="photo" runat="server" Text='<%#Eval("photo") %>'></asp:Label>
</td>
<td height="25" align="right" width="92px">
用户名 :
</td>
<td height="25" align="left" width="116px">
<asp:TextBox ID="username" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"username") %>'></asp:TextBox>
</td>
</tr>
</table>
</EditItemTemplate>
</asp:DataList>以上是我前台的代码,我想在后台编辑的时候获得TextBox框里的参数,怎么获取?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货