A set of controls that help with using DotVVM and ASP.NET Web Forms in the same application
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
web/DotVVM.WebForms.Tutorial
.gitignore
LICENSE
README.md

README.md

ASP.NET Web Forms Adapters for DotVVM

This repository contains a set of controls that help with using DotVVM and ASP.NET Web Forms together in one ASP.NET application.

This integration can help with modernization of legacy ASP.NET web apps as it allows to build new parts of the old application using modern and cleaner development methods (MVVM pattern) while utilizing the same business layer and allowing smooth transition between old and new parts of the application thanks to single sign on.

The development of this library is still in progress. The integration will work with DotVVM 2.0. When the library is more stable, it will be published on Nuget - currently you need to build the source code.

Any feedback is welcome - we're on Gitter.

Controls

  • <dotvvm:RouteLink runat="server"> is ASP.NET Web Forms control that renders hyperlinks for DotVVM routes.

  • <webforms:RouteLink> is DotVVM control that renders hyperlinks for ASP.NET Web Forms routes.

Usage

  1. Open the csproj file and add change the <ProjectTypeGuids> element to the following code:
<ProjectTypeGuids>{94EE71E2-EE2A-480B-8704-AF46D2E58D94};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
  1. Install Dotvvm.Adapters.WebForms and Microsoft.Owin.Host.SystemWeb packages in the project.

  2. Add Startup.cs and DotvvmStartup.cs classes (see sample app).

  3. Add the following registration to web.config:

  <system.web>
    <pages>
      <controls>
        <add tagPrefix="dotvvm" namespace="DotVVM.Adapters.WebForms.Controls.WebForms" assembly="DotVVM.Adapters.WebForms"/>
      </controls>
    </pages>
  </system.web>
  1. Use the controls to link between ASP.NET Web Forms and DotVVM routes (see sample app).