hi, friends,
I am using Asp.net Ajax Chart Control.
it is nice and simple to use, and also easier to manage than normal asp.net chart control.
but I got error when I try to export Ajax chart to excel.
the error is :
Script control 'BarChart1' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl
my Ajax Chart id is BarChart1.
I don't know how to register ScriptControl().
in my codebehind, I already wrote already to export GridView.
public override void VerifyRenderingInServerForm(Control control)
{
//base.VerifyRenderingInServerForm(control);
//ScriptManager sm = ScriptManager.GetCurrent(Page);
//sm.RegisterScriptControl(BarChart1);
}
I believe this error is what other peoples also have encountered before.
but I still cannot find the solution yet.
regards