Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 08, 2012 04:43 AM by TechFriend
Member
2 Points
9 Posts
Aug 07, 2012 01:49 PM|LINK
Hi All,
I have this requirement where on load of an aspx page...(In ASP.NET 1.1)
A grid kind of thing will come, where it will contains unknown number of rows(will be known at runtime) and each row should contain textboxes to enter data.
Any solutions on this is appreciated.
Contributor
6109 Points
1167 Posts
Aug 07, 2012 06:19 PM|LINK
for (int i = 0; i < 3; i++) { TextBox tbox = new TextBox(); tbox.ID = i.ToString();
tbox.Text="Some Text";
}
Make as your Answer if you think its helped you
Sohail Shaikh
Participant
955 Points
182 Posts
Aug 08, 2012 04:43 AM|LINK
You can have a panel control and then add textboxes to it as required.
<asp:Panel>...</asp:Panel>
You could use grid's row databoud or something and manage the case.
ratans
Member
2 Points
9 Posts
Dynamic textbox and label creation
Aug 07, 2012 01:49 PM|LINK
Hi All,
I have this requirement where on load of an aspx page...(In ASP.NET 1.1)
A grid kind of thing will come, where it will contains unknown number of rows(will be known at runtime) and each row should contain textboxes to enter data.
Any solutions on this is appreciated.
SohailShaikh
Contributor
6109 Points
1167 Posts
Re: Dynamic textbox and label creation
Aug 07, 2012 06:19 PM|LINK
for (int i = 0; i < 3; i++) { TextBox tbox = new TextBox(); tbox.ID = i.ToString();tbox.Text="Some Text";}Make as your Answer if you think its helped youSohail ShaikhSohail Shaikh
TechFriend
Participant
955 Points
182 Posts
Re: Dynamic textbox and label creation
Aug 08, 2012 04:43 AM|LINK
You can have a panel control and then add textboxes to it as required.
<asp:Panel>...</asp:Panel>
You could use grid's row databoud or something and manage the case.