Click here to Skip to main content
15,889,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
how to solve the error

"Script control 'upProgress' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl".

error occurred while rendering user control to html using the code
C#
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 is an ajax update panel progress bar.
Posted
Comments
AmitGajjar 25-Aug-12 2:53am    
HtmlTextWriter is your user control ? if so, please post code of that. also post the code of your update panel (aspx page code)

1 solution

You've got a script control in your page called upProgress and it's not registerd. That's what the error says. If you think that is wrong, you need to post code and explain why you disagree with what the error says.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900