title: Problems on override the Render method
body: <p>I want to serialize all my output of a Web Form (from aspx and aspx.cs, on .NET 3.5) to JSON. So, this is my code :</p>
  
  <pre><code>protected string myText;
  
  protected void Page_Load(object sender, EventArgs e)
  {
      myText = "&lt;div&gt;&lt;span&gt;This is my whole code&lt;/span&gt;&lt;div&gt;&lt;a style=\"color:blue !important;\" href=\"#\"&gt;A link&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;";
  }
  
  protected internal override void Render(HtmlTextWriter writer)
  {
      var serializer = new JavaScriptSerializer();
      Response.Write(Request["callback"] + serializer.Serialize(writer.ToString()));
  }
  </code></pre>
  
  <p>but I get this error :</p>
  
  <pre><code>CS0507: 'moduli_Prova.Render(System.Web.UI.HtmlTextWriter)': cannot change access modifiers when overriding 'protected' inherited member 'System.Web.UI.Control.Render(System.Web.UI.HtmlTextWriter)'
  </code></pre>
  
  <p>Where am I wrong? Is this the right method to doing it?</p>