Create the controller

  1. In the Mvc/Controllers folder, create a new class that derives from the System.Web.Mvc.Controller class and name it CustomFormWidget.
  2. Open the CustomFormWidget.cs file and add the action to the controller.
  3. Raise the event that invokes the event handler, subscribed to the custom event by adding it to the CustomFormWidgetController.cs file.

Use the following code sample:


Was this article helpful?