// Create a method named createTextboxRow //
protected void createTextboxRow()
{
TextBox t;
int j;
j=Convert.ToInt32(TextBox1.Text);
for(int i=1;i<=j;i++)
{
t=new TextBox();
Form.Controls.Add(t);
}
}
// Calling of this method //
btn_Click(object sender,EventArgs e)
{
createTextboxRow();
}
No comments:
Post a Comment