This is a migrated thread and some comments may be shown as answers.

[Solved] Ajaxpanel in codebehind

1 Answer 177 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Andres
Top achievements
Rank 1
Andres asked on 30 May 2008, 08:27 AM
Hi!

We are trying to use the radajax panel from codebehind.  Using the rendercontrol method we can't get the ajaxpanel to work.  We always have the  following error:

 Script control 'upCats' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().



Here's some of our code:

'UPDATEPANEL START------------------ 
Dim upPanel As New Telerik.Web.UI.RadAjaxPanel 
Dim sw As New IO.StringWriter() 
Dim tw As New HtmlTextWriter(sw) 
Dim content As New Literal 
upPanel.ID = "upCats" 
upPanel.Page = Me.Page 
'----------------------------------- 
 
''Filling content here 
''Code stripped 
 
'UPDATEPANEL STOP------------------ 
upPanel.Controls.Add(content) 
upPanel.RenderControl(tw) 'ERROR COMES HERE 
strCatsOverview &= sw.ToString() 
'----------------------------------- 

Thx for your quick response!

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 May 2008, 10:49 AM
Hi,

I have found a forum link discussing a similar error.
Script control '...' is not a registered script control.

Shinu.
Tags
Ajax
Asked by
Andres
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or