How to create a web part editor in SharePoint 2010?

How to create a web part editor in SharePoint 2010?

In Visual Studio 2010, click New Project, expand the SharePoint node, click 2010, and then click Empty SharePoint Project. Name the project EditorPartTab, and then click OK. Add two classes to the project named TabData and TabConfigurationEditorPart.

How to add HTML content to a webpart?

Unlike MOSS 2007 you will not get the option of adding HTML in a source editor. To add HTML content you need these steps: 1. Select the text area in the webpart as shown in the screenshot below: 2. Now have a look into the ribbon under editing tools. You will get an option to insert HTML.

How to insert JavaScript into a content editor web part?

A note about inserting code. If you choose to add any code (i.e. CSS or JavaScript) you’ll need to insert your code using this HTML Source method. In addition, after adding code into a Content Editor Web Part it is best to always edit the content of the Content Edition Web Part using the HTML Source method to ensure your code remains intact.

How to add HTML content in SharePoint Server 2010?

Recently a friend asked me how to add HTML content into Content Editor WebPart since they were unable to find this option in SharePoint Server 2010 as they were used to MOSS 2007. Unlike MOSS 2007 you will not get the option of adding HTML in a source editor. To add HTML content you need these steps:

How to create a custom ASP.NET web service?

To verify that your custom Web service is discoverable, navigate to http://MyServer/_vti_bin/MyCustomWebService.asmx.

How to create Windows application that consumes Web service?

To create a Windows Application that consumes the Web service Open Visual Studio, and on the File menu, point to New, and then click Project. In the New Project dialog box, select Visual C# or Visual Basic, and then select the Windows Forms Application template.

How to create a web site in Visual Studio?

Creating an ASP.NET Web Service in Visual Studio. The first step is to create a Microsoft ASP.NET Web service Web site in Visual Studio. In Visual Studio, click File, point to New, and then select Web Site.

How to create a web part in Visual Studio?

Creating a Web Part by using the Visual Studio Web Part item template. Creating a property that can be set by the user of the Web Part. This property specifies the location of the employee data file. Rendering content in a Web Part by adding controls to the Web Part controls collection.

Which is the framework that enables custom editor parts?

First, we examine the framework that enables custom editor parts. Two types form the core for developing custom editor parts: the IWebEditable interface and the EditorPart class. You can use the IWebEditable interface to specify custom editing controls that are associated with a WebPart control.

How does the web part display employees in a data grid?

The Web Part displays employees in a data grid. The user specifies the location of the file that contains the employee data. The user can also filter the data grid so that employees who are managers appear in the list only. This walkthrough illustrates the following tasks: