Develop a simple WebPart, first we need to extends the corresponding function of Visual Studio .Net 2003, we can download to an extension feature package in Microsoft's website, name is: WebPartTemplatesForvsnetSample2.exe download address:
http://download.microsoft.com/download/7/0/E/70E9B26F-EC05-4171-80EC-5D0D8C38E67E/webpartTemplatesForvsnetSample2.exe
The installation can extend Visual Studio .NET 2003 to develop WebPart parts. We create a simple WebPart project
Modify several places:
WebPart2.cs file
Modify the function renderWebPart Add a statement that displays a string of strings.
Protected Override Void RenderWebPart (HTMLTextWriter Output)
{
THIS.TEXT = "My Web Part";
Output.write (Spencode.htmlencode (text));
}
WebPart2.dwp file
XML Version = "1.0" encoding = "UTF-8"?>
WebPart>
Manifest.xml file
Add we added WebPart DWP files
Dwpfiles>
To deploy our WebPart to implement our application for a simple WebPart. About a WebPart deployment issuance, see another article "Three Deployment Methods of WebPart".
We are on the design web page, you can find the web part we have in "Virtual Server Library"
Remove it into the corresponding location