Get current controller in view .net mvc
@HttpContext.Current.Request.RequestContext.RouteData.Values["controller"].ToString()
var path = '@ViewContext.RouteData.Values["controller"]@ViewContext.RouteData.Values["action"]';
alert(path);
Get current controller in view .net mvc
Reviewed by Leo
on
April 10, 2022
Rating:
Tidak ada komentar