title: Asp.Net control inside AngularJS views
body: <p>I've got AngularJS application that is loosely wrapped by an Asp.Net MVC page. The AngularJS stuff ignores the Asp.Net and does its own routing, ng-includes, and so on, so pages are constructed from html partials that Asp.Net knows nothing about.</p>
  
  <p>I've run into a situation where it would be very useful to have an Asp.Net control / MVC extension in one of my pages, but the pages are deep in Angular land. Is there any practical way of getting this working without restructuring the whole application?</p>
  
  <p>This is sort of what I'm trying to accomplish:</p>
  
  <p>index.cshtml:</p>
  
  <pre><code>&lt;body ng-app="App" ng-controller="Controller"&gt;
      &lt;div ng-include src="angularView.html"&gt;
  </code></pre>
  
  <p>angularView.html:</p>
  
  <pre><code>&lt;div ng-include src="aspNetView.cshtml"&gt;
  </code></pre>
  
  <p>aspNetView.cshtml:</p>
  
  <pre><code>@Html.Something()
  </code></pre>
  
  <p>Obviously the ng-include aspNetView.cshtml won't work, but this is what I'm trying to do: Asp.Net stuff inside the Angular stuff.</p>
  
  <p>(My specific use case is trying to put in a DevExpress grid using <code>@Html.DevExpress().GridView(...)</code>, but the problem is still general)</p>