Hi,
I want to add an Update Panel Dynamically.

 I have tried the following but it does't seems working...

Dim sTxt as TextBox = new TextBox
Dim ddlTest As DropDownList = New DropDownList
ddlTest.Items.Add("X")
ddlTest.Items.Add("Y")
Dim objUpdatePanel As UpdatePanel = New UpdatePanel
objUpdatePanel.UpdateMode = UpdatePanelUpdateMode.Conditional
objUpdatePanel.ContentTemplateContainer.Controls.Add(ddlTest)
objUpdatePanel.ContentTemplateContainer.Controls.Add(sTxt)

Can anyone find a way out?

Thanks,
Karthik

Reply via email to