Hi...
Am stuck with a problem.....my question is how do i iterate a control for eg(a textbox) in runtime....let me make it clear if user enter value as "2" and clicks a button it has to iterate two texboxes as output.
I have done in my way but then it iterate once when i press the button ....
protected void Button1_Click(object sender, EventArgs e)
{
int a = 3;
for (int j = 0; j < a; j++)
{
textb.Height = 20;
textb.Width = 100;
textb.ID = "name" + j.ToString();
PlaceHolder1.Controls.Add(textb);
PlaceHolder1.Controls.Add(new LiteralControl("<br/>"));
// fun();
}
}
Thanks ...