开发者

RenderControl error

开发者 https://www.devze.com 2022-12-31 18:59 出处:网络
HI, I have a grid with which I\'m templating columns with and one column is a user control. Since I\'m adding these in the code behind ( using ITemplate), I get an error when I try to render the UserC

HI, I have a grid with which I'm templating columns with and one column is a user control. Since I'm adding these in the code behind ( using ITemplate), I get an error when I try to render the UserControl. This particular user control does require a scriptmanager since it includes a ajax control (radcombobox). The error 开发者_开发问答I get is : Script control 'LookupComboBox' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().

I'm not sure even if my approach is correct using user control and using RenderControl.


You must add script controls to a live controls collection in order to render them. Simply calling RenderControl won't do.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号