Hi all,

Want to ask some answers for my current problem.
I have a page which has dynamically created controls on it.
1. One Place holder. (already on page)
2. Two Tables which includes data and textboxes. (Created dynamically and use PlaceHolder.Controls.add to add it on form)
3. One "Save" Asp.net button. (Already created on page but use PlaceHolder.Controls.Add to add it and move its location.)

User will fill in some information in the tables' textbox. There will be 12 text box per row and total over 400 rows. (Of course, user will not fill up all textboxes. Just a few 10 or 15 rows and user will enter remaining value in 'The rest: ' textbox.)

When user finish, he will press the "Save" button.
Problem is after pressing this button, it didn't go to button click event first. It goes to Page_init event first and then comes to button click event.
So, in the middle of somewhere, the form is brand new and there is no data inside the textbox when it reached button event.

How to prevent this from happen?

What I found so far is:
I read some post indicate to declare the dynamically controls in Page_Init event instead of Page_Load event. So, I did it. And so when pressing button, it goes to Page_Init and so my dynamic controls all become new.

Any solution?

Thanks.