Getting the names of previous action and controller in MVC controller?

Asp.net mvc does not provide this, due to stateless nature of http, but you can store this using session or cookie.

Store this value in tempdata OR look up the referring route (via the url) to get the actual route object, then look at its controller and action property. In order to get this you need to be able to look up a route from a URL. To do this, refer to Phil Haacks code (there are others as well) to look up a route.

There are various methods listed at.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions