« .NET and FireFox & Netscape | Main | Apply template in .net applications »

Create X Number of TextBox at Runtime

http://www.artisticode.com/Downloads/154.aspx

----------------------------------- Below is the contribution I made------------------------------------------

Clean Up when the number of textbox was changed
By ? on Wednesday, July 19, 2006 (PST)
If we don't cleanup everytime when the requrested number of textbox was changed, error or messy would be expected. Below is my solution:

private void cleanUp()

{

TextBoxesHere.Controls.Clear();

ltlReturnData.Text = "";

}

private void txtTBCount_TextChanged(object sender, System.EventArgs e)

{

cleanUp();

}