Being new to MVC I have a question. In a http module, how can I find if the current request was from a mvc page ie http://www.website.com/user/edit
Is there something in the current context I can check for?
You can get the controller and action name....
var request = httpContext.Request.RequestContext.RouteData.Values;
string ActionName = request["Action"].ToString();
string ControllerName = request["Controller"].ToString();
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