SharePoint creates a simple Web Parts standard Web Part that can sometimes be very powerful and can perform many functions. This article explains how to create a simple Web Part using Visual Studio. 1. Open VS, click File----New project. 2. Select a blank SharePoint project. Name Smallvillewebpartproject, click OK. Choose Deploy as a farm solution. 3. Right-click the project to add a new project. 4. Select the Web Part. 5. Name Customerinformation, click Add. 6. Right-click the new Web Part project, select Add Class, Name CustomerData, and click OK. 7. In the new class, modify the code as follows: 8. Right-click the core Web Part and select View Code (or double-click the Web Part). 9. Modify the code as follows: 10. Then double-click Customerinformation.webpart to modify its caption and description properties. 11. Now you can deploy this standard Web Part. Click Build----Deploy the solution. 12. Add on the page. Click Site Actions-Edit page-Add Web Part. 13. Navigate to the Custom category and select Customer Info Web part. Click Add.
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.