Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]Welcome to DevExpress .NET Documentation
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Collapse]Common Concepts
  [Expand]Web.config Modifications
  [Expand]Callback Exception Handling
  [Expand]Client-Side Functionality
  [Expand]Cookies Support
  [Expand]Appearance Customization - Theming
   Icon Collection
  [Expand]Performance Optimization
  [Expand]CSS Image Sprites
   Supported Document Types
  [Expand]Accessibility Support
   Right to Left Support
   HTML Encoding
   Binary Storage Configuration
  [Collapse]SharePoint Support
   [Expand]Ready to Use Web Parts
   [Collapse]Developer Capabilities
     Installation and Deployment
     Upgrading to a Newer Version
     Visual Web Part Creation
     SharePoint Page Editing
     Web Part Creation
    SharePoint Troubleshooting Guide
   Mobile Support
  [Expand]Office Document Management
   Cloud Storage Account Management
  [Expand]Web Farm and Web Garden Support
 [Expand]ASP.NET WebForms Controls
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Visual Web Part Creation

This tutorial illustrates how to use DevExpress ASP.NET controls in a standard Visual Studio Visual Web Part project.

Expanded 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.

    • Registration for Version 14.2 and newer
    • Registration for Version 14.1 and older
  • Register the ASPxUploadProgressHttpHandler handler entry in the target SharePoint site Web.config.

    The code sample below demonstrates how to register the ASPxUploadProgressHttpHandler handler.

    • Registration for Version 14.2 and newer
    • Registration for Version 14.1 and older

Expanded Creating a new Visual Web Part

  1. 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.

  2. Drag the required control (an ASPxButton in this example) from the Toolbox, and drop the control onto a WebUserControl (the *.ascx file).

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

  4. 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.

Expanded See Also

Is this topic helpful?​​​​​​​