title: asp.net server control in mvc application
body: <p>We have a server control that we want to use in our .net MVC application. The control will only be a part of the page and I would like to not refactor the whole application (including layout pages) to get this one page to work. So I believe my choices to be as follows.</p>
  
  <ul>
  <li>Just put everything on an aspx page, and use routing to go there, losing my layout pages</li>
  <li>Use an iframe (lame)</li>
  <li>Use HttpContext.Current.Server.Execute(url) (throws error)</li>
  <li>Use an http request to get the html and then shove it on the page, better than an iframe</li>
  </ul>
  
  <p>So idealy I would like to use HttpContext.Current.Server.Execute to execute the url, return the html and do that all server side. I just keep getting an error thrown. The page is accessible from a browser, but the routing is taking affect sometimes and then I just get a "Child request failed".</p>
  
  <p>Thoughts? Please also don't say this is a bad idea, I already know that. I'm just trying to make the best of a bad situation.</p>
  
  <p>Thanks.</p>