How to Create a Web User Control
- Select Add new item in the solution explorer context menu.
- Select Web User Control.
- Enter a name for the control to create.
- Click OK.
- The generated files should have the correct filename (for example: foo.ascx, foo.ascx.cs, foo.ascx.designer.cs).
- 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.
- The type declared in the codebehind file should derive from EPiServer.UserControlBase.