This tutorial illustrates how to use DevExpress ASP.NET controls in a standard Visual Studio Visual Web Part project.
Requirements
- Install all required DevExpress assemblies into the GAC. Refer to the Installation and Deployment topic to learn how to do this.
Register the ASPxHttpHandlerModule module entry in the target SharePoint site Web.config.
The code sample below demonstrates how to register the ASPxHttpHandlerModule module.
Register the ASPxUploadProgressHttpHandler handler entry in the target SharePoint site Web.config.
The code sample below demonstrates how to register the ASPxUploadProgressHttpHandler handler.
Creating a new Visual Web Part
- Create a new Visual Web Part project (refer to the How to: Create a SharePoint Visual Web Part MSDN article for more information). Select the Deploy as a farm solution trust level.
Drag the required control (an ASPxButton in this example) from the Toolbox, and drop the control onto a WebUserControl (the *.ascx file).

Build and deploy the Visual Web Part to a target SharePoint site via the "Deploy" command.

When the deployment is successfully completed, navigate to the required SharePoint page and insert the deployed Visual Web Part via the Site Actions -> Edit Page -> Insert -> Web Part command. By default, custom Visual Web Parts are available in the Custom group.

The result is illustrated in the image below.

See Also