This is a sample of one asp:TextBox
<asp:UpdatePanel ID="UpdatePanel" runat="server" UpdateMode="Always">
<ContentTemplate>
<asp:TextBox runat="server" ID="MyBox" />
</ContentTemplate>
</asp:UpdatePanel>
In the code behind I get a lot of data from the DB , and I want to create accordingly asp:TextBox
text-boxes .
Is it possible to add the the UpdatePanel asp:TextBox
from code behind ?
The code behind :
protected void Page_Load(object sender, EventArgs e)
{
int numberOfItems = AccountsBank.Bank_DAL.GetNumberOfActiveAccount();
// create 'numberOfItems' asp:TextBox
}
Please note that I'm not looking for a TextArea , what I need are multiple asp:TextBox
's .
Your help is much appreciated