I have a table that I am creating programmatically and then adding some rows and data to it in the CreateChildControls() method.It has 2 columns with dropdownlist controls in it.Now on the client side based on selection in the dropdown I am adding more rows by copying the contents of the last row.There is a save button which when clicked invokes the below overriden function of the webpart to get the table object back..The issue is the rows that I am adding on the client side are not being retrieved..Only the rows that were created on the server side initially are being retrieved.Can someone please tell me what I am doing wrong here.
So doing this Table tab = FindControl("Main1") as Table; tab.rows only give 3 which were initially generated on the server and does not include the 2 new that were created client side
Public Override Control FindControl(string id)
{
return base.FindControl(id);
}