Creating a Content Page Template in WebForms

This tutorial assumes you have added the Visual Studio item templates. How to do this is documented in Setting Up Your Environment

Right-click on the project node and Add / New item… Select N2 Page Template and Add

A content item class and a page template is generated.

Content item class:

foo

Page template:

bar

Note that the page template (in the code-behind) inherits from ContentPage<T>. 

Compiling (F6 by default) makes the page available in the N2 management UI.