asp.net MVC: how to get the previous action name 



حمایت از ما | مشهدهاست

asp.net MVC: how to get the previous action name


حمایت از ما | مشهدهاست

حمایت از ما | مشهدهاست حمایت از ما | مشهدهاست

حمایت از ما | مشهدهاست
`

asp.net MVC: how to get the previous action name



asked

6 years ago

viewed

1750 times

active

6 years ago


I can get the current action name by using the following code

var currentActionName = ControllerContext.RouteData.GetRequiredString("action"); 

but is it possible to get the previous action name as well?


2010-05-06 19:32:35Z


1:


Why not saving it in a session variable?

Try this:

Session["lastAction"] = Session["actualAction"]; Session["actualAction"] = ControllerContext.RouteData.GetRequiredString("action"); 



 اين مطلب بدون دخالت انساني عينا از اين آدرس کپي شده و تمامي مسوليت آن با ناشر اصلي است.

How to call javascript function from code-behind
ASP.NET Web Application Message Box
IE9 JavaScript error: SCRIPT5007: Unable to get value of the property 'ui': object is null or undefined
How to Convert DataSet to DataTable
How can I get the CheckBoxList selected values, what I have doesn't seem to work C#.NET/VisualWebPart
Change GridView row color based on condition

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode
How to get current page URL in MVC 3
Read data from SqlDataReader
Get current date only in C#
How to add doublequotes to a string that is inside a variable?
Select method in List<t> Collection
*