我可以得到当前动作和控制器的名称,如:
string controllername = this.ValueProvider.GetValue("controller").RawValue.ToString();
string actionname = this.ValueProvider.GetValue("action").RawValue.ToString();
Run Code Online (Sandbox Code Playgroud)
此外,我可以通过以下内容获取reffer url:string MyReferrer = Request.UrlReferrer.ToString();
但是如何在mvc2控制器中获取先前操作和控制器的名称?