Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ASP.net VB.net Dynamically adding a script manager

Posted on 2014-02-12
2
Medium Priority
?
522 Views
Last Modified: 2014-02-12
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
Comment
Question by:Murray Brown
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 39854279
You only need a single scriptmanager per page which you can add in the aspx code.

            <asp:ScriptManager ID="ScriptManager1"
                               runat="server" />
0
 

Author Closing Comment

by:Murray Brown
ID: 39854298
Excellent. Great answer! Thanks
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question