Before u need to add ScriptManager control to the controls collection.
On Tue, Jan 20, 2009 at 2:11 PM, Karthik <[email protected]> wrote: > > 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 >
