Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 527
  • Last Modified:

ASP.net VB.net Dynamically adding a script manager

Hi
 I am getting an error with the following code saying that I need to add a script manager
 above each control. How do I add a script manager?  

            Dim up As New UpdatePanel
            up.ContentTemplateContainer.Controls.Add(oGridView)
            Me.Table1.Rows(oRow).Cells(oColumn).Controls.Add(up)
            Me.Table1.Rows(oRow).Cells(oColumn).Controls.Add(oGridView)
0
Murray Brown
Asked:
Murray Brown
1 Solution
 
CodeCruiserCommented:
You only need a single scriptmanager per page which you can add in the aspx code.

            <asp:ScriptManager ID="ScriptManager1"
                               runat="server" />
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Excellent. Great answer! Thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now