Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 541
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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