如何解决错误:
Script control 'upProgress' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl.
使用代码将用户控件呈现为html时出错:
private string RenderControl(Control ctrl)
{
StringBuilder sb = new StringBuilder();
StringWriter sw = new StringWriter(sb);
HtmlTextWriter hw = new HtmlTextWriter(sw);
ctrl.RenderControl(hw);
return sb.ToString();
}
upProgress
是一个ajax更新面板进度条。