I am using .NET 4.5, VS 2012 to develop a new ASP.NET web form application. My question: is it possible to write custom action filter attributes for that web form application; for example for checking web request, or checking some event handlers. I know in MVC this is absolutely possible. Thanks in advance.
WebForms do not have actions so they do not have action filters. You need some other hook mechanism.
I can think of a few:
Page
base classIHttpModule
Application_BeginRequest
event and others.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With