New Message on dotNET User Group Hyd

Problem with PlaceHolder

Reply
  Reply to Sender   Recommend Message 1 in Discussion
From: SrinuTamada

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.

View other groups in this category.


Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to