Building a SharePoint 2007 Web Part using Web User Controls
page 1 of 5
Published: 19 Nov 2007
In this article Steven demonstrates how to build a SharePoint 2007 Web Part using user controls with the help of a series of steps.
by Steven Barden
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 26724/ 129


The purpose of this article is to demonstrate how to develop a SharePoint 2007 Web Part from scratch that dynamically loads users' web user controls, rather than using the HTML render method. This method allows the developer to use the full power of Visual Studio 2005 in the rapid development of rich, web user control based SharePoint web parts.

View Entire Article

User Comments

Title: awsome mr   
Name: chai
Date: 2010-09-16 8:01:14 AM
hi might , ur are doing excellent job
Title: Building a SharePoint 2007 Web Part using Web User Controls   
Name: Vijay Chavan
Date: 2010-07-16 5:54:51 AM
It work's
Title: GridView Problem   
Name: Steven Barden
Date: 2009-10-08 7:06:53 PM
The gidview is possibly a problem because the sql data access components are disabled by default. So if this is the case, it's not actually the gridview, but the sql data access in the web.config.
Title: Web User Control with GridView   
Name: Alexandra
Date: 2009-10-01 8:32:00 AM
I followed the steps and everything worked fine. However, when I included a GridView inside the Web user Control, the web part doesn't work. The strange is that if I run web user control inside a common aspx page works.
Title: Create Custom SharePoint WebParts   
Name: sara
Date: 2009-09-30 7:29:57 AM
Nice work !!!!!!1
Try this too,
Title: Excellent Article   
Name: Shehzad Ahmed
Date: 2009-08-18 4:24:54 AM
Excellent Article
Title: AJAX support   
Name: Mohamed Hassan
Date: 2009-04-22 1:32:54 AM
Thank you very much for that effort, but i am asking how to add ajax support?? because if the usercontrol contains any ajax control(ex:calender extender), unknown error happened
Title: Could Not Load U/C... Spelling Or Permissions?   
Name: Steven Barden
Date: 2009-02-04 6:56:27 AM
I'm guessing the problem is in the Step 4 area. Check to make sure that the ~/usercontrols directory and code references are all spelled EXACTLY the same between filesystem and code. Also, make sure that the ~/usercontrols directory permissions (and down) are set so the user set in the App Pool that the website sites in has permission to reach into the directory and work with the control.
Title: Could not load type Usercontrol   
Name: dn
Date: 2009-02-04 4:09:04 AM
I follwed the suggested steps . I am getting a error (Could not load type Usercontrol). Please suggest me.

Thanks in advance
Title: Not setting full   
Name: Sb
Date: 2009-01-23 9:10:13 PM
Yes, you can perform this task in other ways, such as custom permissions where you make your own configuration. This is of course highly recommended. This demo was just a start point.
Title: Is there a way around changing the permission to full?   
Name: Tim
Date: 2009-01-23 8:39:00 AM
Is there any way to avoid setting the permission to full. Can we explicitly add the directory where we need file access in the web config?

Title: Good   
Name: Deepak B.R
Date: 2008-08-30 12:27:18 PM
Easiest way to add the webcontrol.

Product Spotlight
Product Spotlight 

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

©Copyright 1998-2024  |  Page Processed at 2024-06-17 7:20:02 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search