title: Is it possible to call Scripts.Render or Styles.Render from the code behind of an ASPX file?
body: <p>Is there a way to replicate the behaviour of the <code>@:Scripts/Styles.Render</code> helper from code behind? </p>
  
  <p>If I reference the bundles by using the <code>BundleTable.Bundles.ResolveBundleUrl</code> method, then bundling and minification occurs even with <code>debug=true</code>. I've read other questions, and the solution seems far obvious, by using the previously mentioned helper. But in my case, I don't know the name of the bundle while in the aspx, and it's generated in runtime in the code behind.</p>
  
  <p>So, I need to add the references in the head, from the code behind, and I can't find a way to do it.</p>
  
  <p>Is there a way? Or will I be forced to do it in the .aspx file?</p>