Search code examples
.netcontrollerradix

Asp.Net Base Controller (non MVC)


I'm trying to implement the solution described here

My project is just an asp.net web application (not MVC)

Can this be done and how do i go about to modifying the base controller?

Thank you


Solution

  • public class YourPage : BasePage {
    
    
    }
    
    public class BasePage : System.Web.UI.Page {
        protected override void OnPreInit(EventArgs e)
        {
             // ... localization/globalization code here ...
             base.OnPreInit(e);
        }
    }