ASP.Net C# ResolveClientUrl inside Class

前端 未结 4 1205
我寻月下人不归
我寻月下人不归 2021-02-01 20:36

I have the following code:

public class NavigationPath
{
    private string menuItems = \"
  • \" + \"
  • 4条回答
    •  耶瑟儿~
      2021-02-01 21:15

      Bit old but might help someone. Using :

      using System.Web.UI;
      

      And in code:

      new Control().ResolveClientUrl("Path");
      

      Worked for me, I use Web Application and not Web Site solution, though.

      Regards

    提交回复
    热议问题