I get the following error when trying to RenderControl to html
Script control 'ExecutiveSummaryReport_RadGrid1' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl
What am I doing wrong?
Thanks!
Script control 'ExecutiveSummaryReport_RadGrid1' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl
protected
void
ExecutiveSummary_EmailReport(
object
sender, EventArgs e)
{
StringBuilder sb =
new
StringBuilder();
StringWriter sw =
new
StringWriter(sb);
HtmlTextWriter htw =
new
HtmlTextWriter(sw);
ExecutiveSummaryReport_RadGrid1.RenderControl(htw);
//Error happens here
}
What am I doing wrong?
Thanks!