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

Part 4: Changing The Code

1.    Finally, we will change the code to update the webpart output, without re-deploying.

2.    Go back into your code and change the output line; for example, what is listed below.

Listing 4

writer.Write(@"Hi there, " + this.Context.User.Identity.Name + 
    @" (this output has been changed and recompiled.)");

3.    Press <Control><Shift><B> to rebuild your assembly.

4.    Go back to your web page and press refresh.

5.    Without having to re-deploy, your Web Part's output has been updated.

6.    This now becomes a fast way to iterate through the process of building, deploying, testing, updating and testing again your code.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 4 and 5 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/7/2008 10:52:02 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search