如何访问“ListView”控件内的“TextBox”控件?
例如,我想在代码后端中使用此.AddCommentTextbox.Text属性。
aspx代码:
例如,我想在代码后端中使用此.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>