Integrating ASP.NET Ajax WebPart with SharePoint 3.0
page 4 of 8
by Abdulla Hussein AbdelHaq
Average Rating: 
Views (Total / Last 10 Days): 44381/ 82

Deploying Webpart into SharePoint 3.0

Deploying DLL file into SharePoint bin folder

After you have built the project successfully, all you need is to get the DLL file from the bin folder of your project. We are going to deploy that DLL file into the SharePoint site; you can do that simply by copying that DLL and pasting it into the bin folder of the SharePoint site. Or you can change the build output path of the webpart project into the bin folder of the SharePoint site so that it will deploy the DLL file automatically after any build operation.

To change the build output path, use the following steps:

1. From the Solution Explorer, right click over the Solution name, and click on Properties.

2. New window will be opened, click on Compile tab, and then click on browse button in the

    Build output path.

3. Find out the bin folder of your SharePoint site, and then set it as "Build output path" for the webpart project.

Now if you rebuild the project again, it will deploy the project DLL file into the bin folder of the SharePoint site.

Adding SafeControl to the SharePoint Web.Config file

The second step in deploying webpart project into SharePoint site is to add the SafeControl of our webpart project into the SharePoint web.config file.

So you have to navigate to the following path:


And open your SharePoint Site folder, then you will find a web.config file in the root of the SharePoint site. Open it and add a new SafeControl element as shown in Listing 2.

Listing 2

<SafeControl Assembly="TestAbdelHaqWebPart" 
Namespace=" TestAbdelHaqWebPart" TypeName="*" />

That is it; you have deployed a webpart project into a SharePoint site.

View Entire Article

User Comments

Title: Mr   
Name: Dinesh
Date: 2010-11-15 5:48:03 AM
Awesome code and I feel it is the best one for understanding Ajax in Sharepoint. But one small request can u write/give the code in C#. I will be very happy if u do this favor for me. Thanks a lot.
Title: Mr   
Name: James
Date: 2010-10-02 9:57:49 AM
Awesome code, and great references too. } Really thumbs up for the code, this is the best tutorial so far!
Will study how all of this works... =)
Title: Mr   
Name: Hiep
Date: 2010-06-18 12:47:50 AM
This article is useful. thanks much
Title: Mr   
Name: Jafari
Date: 2009-10-19 8:47:26 AM
Thanks Abdulla,
could you explain how to use ajax with multiple updatepanels?
Title: Mr   
Name: ashwin
Date: 2009-02-06 12:54:08 PM
Cool stuff
Title: Mr   
Name: Daniel Partridge
Date: 2009-01-21 5:02:39 AM
This looks really good!!!!
Title: Dan   
Name: Dan
Date: 2008-12-27 9:45:50 AM
Really Liked the oninit code.
Title: mrs   
Name: Madhuri
Date: 2008-12-15 4:32:54 PM
This is really very useful. Thanks

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024  |  Page Processed at 2024-07-23 1:55:07 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search