【发布时间】:2013-02-24 20:03:04
【问题描述】:
如何在“ListView”控件中访问或找到“TextBox”控件?
例如,我想在这个 aspx 页面的代码隐藏中使用 this.AddCommentTextbox.Text 属性。
aspx页面代码:
<asp:ListView ID="PostsListView" runat="server" DataSourceID="EntityDataSourcePosts">
<ItemTemplate>
<asp:TextBox Text="active" ID="AddCommentTextbox" runat="server" TextMode="MultiLine" Height="100" Width="370"></asp:TextBox>
</ItemTemplate>
</asp:ListView>
【问题讨论】: