« .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();

}


TrackBack

TrackBack URL for this entry:
http://blog.lib.umn.edu/cgi-bin/mt-tb.cgi/17224

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)