希望有人可以帮助我.请注意,它是我正在使用的MVC3.
@ViewContext.Controller.ValueProvider.GetValue("controller").RawValue
获取操作的名称
@ViewContext.Controller.ValueProvider.GetValue("action").RawValue
我发现here.