I have
public MvcHtmlString(this UrlHelper url) { string controller = //??? string action = //???? }
Does anyone know a solution?
Try the following:
string controller = url.RequestContext.RouteData.Values["controller"]; string action = url.RequestContext.RouteData.Values["action"];
Source: https://habr.com/ru/post/1775813/More articles:Transaction isolation level in financial applications - javaHow to redirect to gwt client? - redirectHow to get data from a table - sql-serverA simple query causing the message "server is gone" - mysqlНайти дублирующее содержимое в строке? - stringSystem.Management.Automation и System.Runtime.Remoting assembly - powershellhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1775815/how-to-use-hash-multiple-keys-to-generate-a-combined-string-of-values-ruby&usg=ALkJrhhUTE9IZ7efiDYVTtRfwGwUCSaYogAdwhirl does not show ads on the ad network, but at the same time it shows ads for the home - androiddateFromString returns zero after 24 hours change - ios4Инструментальная панель DataGrid на основе данных столбца - wpfAll Articles