Feb 18, 2013, 2:26 PM
[CLOSED] Bug rendering asp.net chart in web site scenario
Very strange. Why in "WEB SITE" scenario this code crushes with error message "Error executing child request for handler 'Ext.Net.SelfRenderingPage'"
but it works on "WEB PROJECT" This is only with asp.net charts
but it works on "WEB PROJECT" This is only with asp.net charts
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "application/json";
ComponentLoader.Render(getPanel());
}
private Ext.Net.Panel getPanel()
{
System.Web.UI.DataVisualization.Charting.Chart chrt = new System.Web.UI.DataVisualization.Charting.Chart();
chrt.BorderlineColor = System.Drawing.Color.Blue;
chrt.Width = new System.Web.UI.WebControls.Unit("100px");
chrt.Height = new System.Web.UI.WebControls.Unit("100px");
Ext.Net.Panel pnl = new Panel();
pnl.Title = "Panel with asp control ";
pnl.ID = "Panel_sdsd";
pnl.ContentControls.Add(chrt);
return pnl;
}
public bool IsReusable
{
get
{
return false;
}
}
Last edited by Daniil; Feb 19, 2013 at 9:42 AM.
Reason: [CLOSED]