I have the following code:
public class NavigationPath { private string menuItems = \"\" + \"
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