How to Create a Web User Control

  1. Select Add new item in the solution explorer context menu.
  2. Select Web User Control.
  3. Enter a name for the control to create.
  4. Click OK.
  5. The generated files should have the correct filename (for example: foo.ascx, foo.ascx.cs, foo.ascx.designer.cs).
  6. The type defined in the code behind file should have a name based on the provided filename and be placed in the default namespace for the current project location.
  7. The type declared in the codebehind file should derive from EPiServer.UserControlBase.