title: Using and Creating helper in Asp.net MVC4 Web Application
body: <p>I am using the Asp.net mvc4 WebRole, and I found this is a Web Application , Not a Web Site.
  after reading <a href="http://www.asp.net/web-pages/tutorials/working-with-pages/creating-and-using-a-helper-in-an-aspnet-web-pages-site" rel="noreferrer">this article</a>, I knew how to add customer Helper function in Asp.MVC4.  In Web Site Appliction I can add a cshtml file in app_code folder like below so that I can use my custom helper method in another cshtml. </p>
  
  <pre><code>  @helper  HotDeployButton(string value, string url , bool enable= true){
  
        string enablestr = string.Empty;
        if (!enable)
        {
            enablestr = "disabled=\"disabled\"";
        }
  
        &lt;input type="button"  name="@value" value="@value" onclick=" window.location.href='@url'" class="mobile-button"  @enablestr /&gt;
    }
  
    @helper Img(string picName, string alt ){
  
        string root = "/content/themes/default/images/";
        string imgurl = root + picName;
  
        &lt;img  alt="@alt" src="@imgurl" title="@alt" /&gt;
  
    }
  </code></pre>
  
  <p>In Another cshtml shown below will use <code>HotDeployButton</code> method.</p>
  
  <pre><code>&lt;div class="bottom-div"&gt;
              @Html.Hidden("hdSelMinorPackId", "")
              &lt;!--Html.Hidden("randomId", (object)ViewBag.RandomId)--&gt;
              &lt;input type="submit" name="ExcuteDeploy" id="ExcuteDeploy" value="Deploy" onclick="return validateVersion();"
                  class="mobile-button" /&gt;
              &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
              @Helpers.HotDeployButton("Back", Url.Action("Index"))
          &lt;/div&gt;
  </code></pre>
  
  <p>But in Asp.net Web Application there is no App_code Folder in project. I don't know how to make it in a Web Application . please help me .Thanks</p>