title: How can i get view path in ASP.NET MVC
body: <p>I create a helper and i want to get view's path in this helper code, How can i do that?</p>
  
  <p>I try code below. It will use view that return from action. So If i use this helper in partial view it will get parent view name instead.</p>
  
  <pre><code>RazorView view = helper.ViewContext.View as RazorView;      
  viewPath = view.ViewPath;
  </code></pre>
  
  <p>Thank you in advance.</p>