I need help with placeholders.
I am working on a form that's dynamically generating from and .ascx file. The form is getting information on user's vehicles for an insurance quote. So for a quote on three four cars, the .ascx file is loaded fours times in the placeholder control. I am trying to add a delete function to the form. So when the user want's to delete vehicle one, I do a ph.Controls.RemoveAt(0) on the postback.
The problem is when I delete vehicle one, the next vehicle repeat three times.
Example: I start out getting a quote on a Thunderbird, Mustang, Fairlane and Model T. I click a button to delete the Thunderbird and when the page loads after the postback, I have three Mustangs.
Can someone point me to a problem (ViewState, etc.)?