Hi I am trying to add the RadAjaxManager programmatically to a page and override the Render method on the page. Here is my code:
| using System; | 
| using System.Collections; | 
| using System.Configuration; | 
| using System.Data; | 
| using System.Web; | 
| using System.Web.Security; | 
| using System.Web.UI; | 
| using System.Web.UI.HtmlControls; | 
| using System.Web.UI.WebControls; | 
| using Telerik.Web.UI; | 
| namespace Neetrix.Web.Administration.TempFiles | 
| { | 
| public partial class TestRender : Page | 
| { | 
| protected void Page_Load(object sender, EventArgs e) | 
| { | 
| RadAjaxManager AjaxManager = new RadAjaxManager(); | 
| AjaxManager.ID = "RadAjaxManager1"; | 
| HtmlForm form = new HtmlForm(); | 
| form.Controls.Add(new ScriptManager()); | 
| form.Controls.Add(AjaxManager); | 
| form.Controls.Add(new LiteralControl("hello")); | 
| this.Page.Controls.Add(form); | 
| } | 
| protected override void Render(HtmlTextWriter writer) | 
| { | 
| writer.Write("<html>"); | 
| base.Render(writer); | 
| writer.Write("</html>"); | 
| } | 
| } | 
| } | 
After compiled and run it, it repeating itself when it reach the line "base.render(writer)". If you view page source on the page, you can clearly see that it duplicate both "<html>" and </html>" tags. If I took out the line "form.Controls.Add(AjaxManager)", it will behave correctly. So my question is, is it a bug or is there something i have missed? Thanks in advanced.
Denny