ASP.net access control in FormView ItemTemplate
问题 I have a form view with an item template with a control inside, is it possible to access that control OnDatabound so I can bind the control with data. I'm using a panel as an example here. <cc1:LOEDFormView ID="FireFormView" runat="server" DataSourceID="DataSourceResults" CssClass="EditForm" DataKeyNames="id" OnDatabound="FireFromView_Databound"> <ItemTemplate> <asp:Panel ID ="pnl" runat="server"></asp:Panel> </ItemTemplate> </cc1:LOEDFormView> 回答1: You have to take care the item mode as well