title: Calling Server side Methods in MVC2 view
body: <p>I have a view which includes </p>
  
  <pre><code>&lt;link href="&lt;%=ScriptUrl.ToUrl("~/Content/App_Themes/Blue/Sales_Blue.css")%&gt;"
      rel="stylesheet" type="text/css" /&gt;
  </code></pre>
  
  <p>in the head section of the view</p>
  
  <p>I have a class as follow which is referenced in the concerned controller :</p>
  
  <pre><code>namespace MVCTEMP.HtmlHelpers
  .....
      public class ScriptUrl
      {
          public static string ToUrl(string path)
          {
              return string.Format("{0}?v={1}", VirtualPathUtility.ToAbsolute(path), MvcApplication.Version);
          }
      }
  </code></pre>
  
  <p>Why do i get The name 'ScriptUrl' does not exist in the current context when i hit run ?</p>
  
  <p>any help will be appreciated
  thanks
  deb</p>