Building a Hello World Web Part for Windows SharePoint Services 3.0
page 7 of 9
by Steven Barden
Feedback
Average Rating: 
Views (Total / Last 10 Days): 10922/ 320

Part 4: Testing The New WebPart

1.    Open your website. At this point your new Web Part is not yet an option to be selected and must be enabled for use.

2.    Open the Site Settings.

3.    Under Galleries click the Web Parts link.

4.    Web Parts are controlled by XML files. But in this case we did not craft an xml file for this webpart. The act of enabling this webpart for use will assist with this need.

5.    Click New, which causes SharePoint to read the Web.config file. It reads the config and uses reflection to build the information needed to allow you to use the webpart.

6.    You should now see the Hello webpart. Click the Populate Webpart option.

7.    Now back in the main Web Part Gallery page, take a minute to review the webpart properties by clicking on the Edit link button. Click on the View Xml link. You may find this bare-bones config file useful in other development tasks.

8.    Now go to the main page. Click on Site Settings, and edit page. In the middle, click on Add A Web Part and locate the Hello webpart.

9.    Your webpart should now be displayed.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 6 and 4 and type the answer here:

User Comments

Title: AWESOME   
Name: M.Czarnecki
Date: 11/2/2007 2:43:03 PM
Comment:
Absolutely fantastic.
You really reamoved all the bloat and the ridiculous hoops that MS wants us to go through. I don't have time for all that garbage. Your tutorial is a gem.

Product Spotlight
Product Spotlight 
Learn More
.NET Tools
asp.net shopping cart
asp.net chart control






Ads Powered by Lake Quincy Media
Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2008 ASPAlliance.com  |  Page Processed at 9/6/2008 11:11:10 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search