ASP.NET MVC find what page sent the Ajax request -


i'm implementing profiling our site, , i'm using timers in application_beginrequest() , application_endrequest() track request times.

the issue in application_endrequest(), can ajax request's url request.rawurl, how can page sent request?

you can check request.urlreferrer page request originated keep in mind browser may not send referer in ajax requests , should account case in code.


alternatively, should pass additional parameter containing current url in ajax calls.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -