ASP.NET Routing - Do Custom Routes COMPLETELY SKIP Everything in the Global.asax?

后端 未结 4 849
无人及你
无人及你 2020-12-18 13:11

I have a simple ASP.NET 3.5 SP1 Web Forms app... I\'ve added the System.Web.Routing DLL, and I\'ve made a simple route that returns a standard ASP.NET Page as the \"IHttpHan

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-18 13:53

    When you say

    "If you don't add ".aspx" to the end of your route, nothing fires in the Global.asax, meaning you don't get any BeginRequest, AuthenticateRequest, EndRequest, etc... Also, you don't get SessionState or anything."

    Will IIS log such requests in the log files or they are just anonymous? what about Application variables and ViewState?

    sorry i haven't tested it yet, but just asking if you might already know?

提交回复
热议问题