resolveclienturl

Is it required to call ResolveUrl() before LoadControl() ?

Is it required to call TemplateControl.ResolveUrl() before passing it to TemplateControl.LoadControl()? Which way is preferred? LoadControl(ResolveUrl("~/MyControl.ascx")); LoadControl("~/MyControl.ascx"); LoadControl("MyControl.ascx"); or maybe ResolveClientUrl() ? ...

Design mode in Visual Studio doesn't ger resources specified with ResolveClientUrl

I use ResolveClientUrl to include css files in my page. When launched through web-server everything is OK, but in design mode css styles are not applied to the page. I use VS 2010 beta 2. <link href= "<%= ResolveClientUrl("~/Styles/Site.css") %>" rel="stylesheet" type="text/css" /> Same thing happens when I use any expression to speci...

ASP.Net C# ResolveClientUrl inside Class

Hi, I have the following code: public class NavigationPath { private string menuItems = "<li>" + "<a href=\"#\">home</a>" + "</li>"; But I would like to have: public class NavigationPath { private string menuItems = "<li>" + ...