Home  /  Questions  /  Question



85   96.4
Jan 20, 2012


How to use WebForm basepage in MVC?

Hi all. In the Design Pattern Framework there is a webform BasePage that inherrits System.Web.UI.Page.
How would I use BasePage if I convert from WebForms to MVC?

In MVC, the controller inherrits from System.Web.MVC.Controller.



830   99.9
Jan 28, 2012
Zhang:

I would add similar functionality in the BaseController, a controller that you derive from System.Web.MVC.Controller.
Then, each of your controllers would derive from BaseController, rather than Controller.

Hope this helps.
Dan