To create a new Web Part project by using visual Studio
Source: Internet
Author: User
Creating a new Web Part project by using Visual Studio is one of the most common objects that you will create for SharePoint. It is the core block of platform building. 1. Open Visual Studio as an administrator and create a new blank SharePoint project. Name Wroxspproject, click OK. Deploy as a farm solution and click Done. 2. Right-click Select Add New Project Web Part, name Simplewebpart, click Add. 3. Before proceeding further, click Build----Deploy the solution. At this point, you will find that VS has added many projects to the solution. For example, it adds Feature1.feature. The new node Simplewebpart is also added, which contains many files. Although you do not see it, many configuration XML has also been updated.
If you double-click the feature node, the feature Designer opens. It provides a graphical view of the feature that comprise the current WSP package. and set the deployment hierarchy (such as a site or farm). You can add or remove feature from this view. Configure deployment options and edit XML. Because you only added a Web Part, only one feature is displayed.
1. Navigate to Simplewebpart.webpart and double-click into Code view. Modify the properties.
2. Open SimpleWebPart.cs. Modify the code. 3. Deploy the solution. 4. Click the view----output. You can see the default build and deployment step procedures. 5. Add the Web Part:wrox book Delivery on the Site page.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.