Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is it possible to check the current page url from an ActionResult in a class inheriting from RenderMvcController?
Well I seem to have figured it out.
this.HttpContext.Request
This is working for me (.RawUrl or .Url etc.)
I suspect in many other cases the controller may have functions that are running independent of a request and so that might not be available in some circumstances.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
check URL (Request) from RenderMvcController controller
Is it possible to check the current page url from an ActionResult in a class inheriting from RenderMvcController?
Well I seem to have figured it out.
This is working for me (.RawUrl or .Url etc.)
I suspect in many other cases the controller may have functions that are running independent of a request and so that might not be available in some circumstances.
is working on a reply...