Hi, I am using PlaceHolder for dynamic controls. I have two aspx page on first page a user can select what all controls he wants on second page and on second page based on first page number of textboxes and dropdown lists witll apear. Here you can enter N number of different data with different group name. These groups will apear like tabs on top of the page. When an user want to view the detail(Previously he enter all data) on the second page initial view details are coming properly but when he click on next group(tab) the same data that appear initially is appearing there also. when i debug this i found that while making table data is holding properly but after assigning table to placeholder, placeholder resetting to previous data. I don;t know what i have to do please help me if anyone face this problem. Thinks that i am doing: Code: -------------- Private Sub initPlaceHolder() Dim tmpTable as New Table tmpTable.Id = "table1" Dim index as Integer = 0 tmpTable.width = Unit.Percentage(100) Dim tempXmlNodeList As XmlNodeList txtgroupname.Text = objXmlPlan.SelectSingleNode("PlanRate/[EMAIL PROTECTED]" & intPlanRateSet + 1 & "]/[EMAIL PROTECTED]" & intGroupSet & "]/Name").InnerText tempXmlNodeList = objXmlPlan.SelectNodes("PlanRate/[EMAIL PROTECTED]" & intPlanRateSet + 1 & "]/[EMAIL PROTECTED]" & intGroupSet & "]/Premium") tmpTable.Rows.Add(headerColumns(tempXmlNodeList.item(0))) While index < tempXmlNodeList.count tmpTable.Rows.Add(addNewPremiumsRow(index , tempXmlNodeList.Item(index))) index = index + 1 End While PH1.Controls.Add(tmpTable) End Sub ------------------ Where PH1 is PlaceHolder and addNewPremiumsRow function will return a row with data that existing in the Xml. |