.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Visual webpart using ajaxcontroltoolkit

Posted By:      Posted Date: October 01, 2010    Points: 0   Category :SharePoint



I've managed to get the ajaxcontroltoolkit to be istalled into sharepoint 2010 using the packages from a visual studio project.

The webparts i'm building will be dployed on multiple sharepoint servers ( not linked in any form ), and inorder to use the ajax elements like the combobox i require a ToolkitScriptManager  instead of the standard scriptmanager.


Is there any way i can do this through code - to remove the script manager and then add a ToolkitScriptManager  as i can't have both on the same page and i donlt want my clients to have to update the master pages.

I know from earlier webpages i can add controls etc.. but as yet this has not worked.






View Complete Post

More Related Resource Links

Displaying pdfs in a Visual Webpart

I am a complete newcomer to Sharepoint. I am trying to build a visual webpart that among other things allows the user to select and view pdf files from a document library. I seem to have the file but IE is just popping up a dialog asking me if I want to save the file...   Any ideas would be much appreciated.

Maintaining session state in a visual webpart


I am building a visual web part that will allow users to navigate the document libraries and view the *.pdf files within them. I am using a static class which exposes a number of properties which essentialy get and set session objects. For example here is the CurrentDocumentLibrary;

public static SPDocumentLibrary

AutoCompleteExtender in a Sharepoint Visual WebPart


Hi All,

I need ti implement AutoCompleteExtender in my webpart. In order to use AutoCompleteExtender we need to add webservice class but I'm not able to a webservice to my visual webpart so can anyone help me on how to accomplish this. Thank you.

Working with different versions of AjaxControlToolkit in Visual Studio 2010

When working with different versions of AjaxControlToolkit , Visual Studio 2010 contains some interesting improvements compared to previous versions of Visual Studio. When adding a particular version of AjaxControlToolkit controls (or other similar third-party controls) to the toolbox using the Choose Toolbox Items dialog, we now show the version number of the control that is being added. Figure 1 Once various versions of these AjaxControlToolkit (ACT) controls such as ACT 3.0 and ACT 4.0 are added to the toolbox in separate tabs (one tab per version), o nly the latest applicable version of the ACT controls will display as visible in the toolbox. This reduces confusion when different versions of ACT are present. The version number of the control...(read more)

Is it possible to write oledb commands in visual webpart 2010 and deploy in sharepoint


Hi to all,

           Is it possible to write the ole-db commands in visual web-parts 2010  and deploy in sharepoint 2010.





Mohammad Siddiqali

ReportViewer failing inside Visual WebPart in SharePoint 2010


I have a ReportViewer control inside a VS2010 Visual WebPart deployed in SharePoint 2010.

If I put the report inside an iFrame it works fine (just setting the src = the URL of the report).

If I put it into a ReportViewer I get:

The request failed with HTTP status 401: Unauthorized

There is a script error as well:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0E)
Timestamp: Thu, 25 Nov 2010 16:31:21 UTC

Message: Sys.ArgumentNullException: Value cannot be null.
Parameter name: panelsCreated[3]
Line: 129
Char: 12
Code: 0
URI: http://sp1/ScriptResource.axd?d=-xH2htwpSITFBSwbFV7VDS5Q9mmVEgTgSvuk8Jnd0Aqfw1cDpd2fSDrxiYgThtNQaq_myOFBHF5amI3fSpKyzWC4_s-HZtrKUr2-4SPgMT-QTYS4o9bFW4nEbGrr672JSI6F-Bj9IwIMCeRG3jk4zDu2TszO2ivKeIwAwEZMMVRfONWH0&t=5c2f384e

I have deployed the webpart to a standard web application and it works fine.

Here's the entirety of the code (or the bit that matters)

Visual Case Tool - UML Tutorial

The Class Diagram

The class diagram is core to object-oriented design. It describes the types of objects in the system and the static relationships between them.

ASP.NET 4 and Visual Studio 2010 Web Development Beta 2 Overview

Many exciting changes for ASP.NET are coming in the .NET Framework version 4. This document gives an overview of many of the new features that are included in the Beta 2 release of the .NET Framework 4 and of Visual Studio 2010.

Visual Studio 2010 Beta 2

This is a big deal. This isn't ".NET 3.6" - there are a lot of improvements of .NET 4, and it's not just "pile on a bunch of features so you get overwhelmed." I've been working with and talking to many of the teams involved and even though it's a cheesy thing to say, this is a really customer-focused release.

ASP 4 - Whirlwind Tour around .NET 4 (and Visual Studio 2010) Beta 1

There's a lot of stuff that's new and added in .NET 4, but not in that "overwhelming-I-need-to-relearn-everything" way. More in that, "oh, this is way easier/simpler now" way. Like, moving data around with ADO.NET DataServices is easy, binding with client templates is easy, there's F# if you need it, the "dynamic" keyword if you need it, Silverlight's already installed, oh, and the parallel stuff will freak you out, but in a good way.

Short Overview of SharePoint Features in Visual Studio 2010

As you probably know, Visual Studio 2010 was announced earlier this week and it contains a lot of cool features and project templates for SharePoint developers. Below is a short overview for some of the SharePoint development related features and project templates.

How to run Office macros by using Automation from Visual Basic .NET

This step-by-step article describes how to call Office macros from a Visual Basic .NET Automation client.

You can use Microsoft Office Automation to open a document or create a new document that contains a Visual Basic for Applications (VBA) macro and execute the macro at run time.

Visual Studio Add-In for Web Parts Generation

This article will introduce you to a new Visual Studio 2005/2008 add-in that can be used for Web Parts generation based on a prepared ASCX control/template. The add-in should allow Web Part developers to easily make Web Parts using the Visual Studio HTML designer. It should save you a lot of time and make Web Part development an enjoying experience even for beginners.

This article is written in the form of a step-by-step tutorial. It will give beginners a chance to successfully make, deploy, and try their first Web Parts, and will save some time for advanced users as you can always run into challenges when working with SharePoint.

Create and Use a Typed DataSet by Using Visual C# .NET

This article shows you how to create and use a typed DataSet in a small Web application. Typed DataSets, which inherit from the DataSet class, create first-class members of a DataSet's DataTables and DataColumns, yielding the many benefits that come with the use of strong typing.

How to programmatically add controls to Windows forms at run time by using Visual C#

Create a Windows Forms Application
Start Visual Studio .NET or Visual Studio 2005 or a later version, and create a new Visual C# Windows Application project named WinControls. Form1 is added to the project by default.
Double-click Form1 to create and view the Form1_Load event procedure.
Add private instance variables to the Form1 class to work with common Windows controls. The Form1 class starts as follows:

Dynamically Create Controls in ASP.NET by Using Visual C# .NET

This article demonstrates how to dynamically create a control for an .aspx page. The sample project does the following:
Creates two TextBox controls.
Verifies that the contents (TextBox.text) and the attributes of the TextBox are saved across posts to the server.
Illustrates handling events that are posted by a dynamically-created control

Dynamically Create Controls in ASP.NET with Visual Basic .NET

This step-by-step article describes how to dynamically create controls for an ASPX Web page.

The sample project does the following:
It creates two TextBox controls.
It verifies that the TextBox contents (TextBox.text) and attributes are saved across posts to the server.
It describes how events that are posted by a dynamically created control are handled.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend