在WebForm中,我们可以在MasterPage.cs中编写一个方法,并在每个请求中运行. 例如:
MasterPage.cs -------------- protected void Page_Load(object sender, EventArgs e) { CheckCookie(); }
我们怎么能在MVC中做这样的事情?
c# asp.net-mvc asp.net-mvc-3
asp.net-mvc ×1
asp.net-mvc-3 ×1
c# ×1