title: Umbraco 6.2.0 Render maco inside a razor macroscript
body: <p>I have the below code which works but is there a better way using the RenderMacroContent method.  Not sure how to add parameters to that.</p>
  
  <pre><code>&lt;umbraco:Macro runat="server" language="cshtml"&gt;@{
  HtmlTextWriter writer = new HtmlTextWriter(this.Output);
  var macroPressLogin = new umbraco.presentation.templateControls.Macro();
  macroPressLogin.Alias = "Security-PressLogin";
  macroPressLogin.Attributes.Add("TargetNode", Parameter.TargetNode);
  macroPressLogin.RenderControl(writer);   }&lt;/umbraco:Macro&gt;
  </code></pre>