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

[Solved] Facing problem in RadAjaxLoadingPanel

4 Answers 134 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mangesh
Top achievements
Rank 1
Mangesh asked on 01 Sep 2009, 09:20 AM
Hi,

I am using licensed ersion of telerik controls.
I want to use RadAjaxLoadingPanel on my page but when I drop below code, page thorws error as "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). ".
Suprizingly I used the same code in other page within the same application and it works fine.

One observation: I am not getting <telerik..> in the intellisense despite of registering '<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>'  whereas I get it on the page on which it successfully works.

 

 

 

Can you please suggest me any solution?

 

 

 

<telerik:RadAjaxLoadingPanel  ID="LoadingPanel_Main" runat="server" Transparency="30" BackColor="ControlLightLight" MinDisplayTime="3000" HorizontalAlign="Center">  
<table class="basic_text">  
<tr> 
<td style="height: 10%; width: 80%; vertical-align: middle;">  
<img alt="<%= (string)this.GetGlobalResourceObject("Resources", "LoadingMessage") %>" src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border: 2;" /> 
 </td> 
</tr> 
</table> 
</telerik:RadAjaxLoadingPanel> 

Thanks and Regards,

 

 

 

 

Mangesh

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 01 Sep 2009, 10:16 AM
Hello Mangesh,

Please use a RadCodeBlock control to wrap the <img> element.

http://www.telerik.com/help/aspnet-ajax/troubleshooting.html

Best wishes,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Mangesh
Top achievements
Rank 1
answered on 01 Sep 2009, 11:33 AM

Hi Dimo,
Thanks for the reply.

Telerik.Web.UI.WebResource.axd is already added in my web.config. I also tried wrapping up my image inside RadCodeBlock control but still facing the issue. I tried some other solutions like putting entire thing between </body> and </html>, using  <%= instead of <%# etc but no success. However, without any changes, somehow I started getting intellisense though. Also, please note that it works fine for the other page within a same web application inside a same directory.

Please let me  know if you can think of any other solution.

Regards,
Mangesh

0
Dimo
Telerik team
answered on 01 Sep 2009, 01:55 PM
Hi Mangesh,

Do you have another code block on the page? It may also require a RadCodeBlock around it.

If the problem persists, please open a formal support ticket and attach a runnable sample project, which reproduces the issue.

Sincerely yours,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Mangesh
Top achievements
Rank 1
answered on 01 Sep 2009, 02:08 PM
Hi Dimo,
I went by the layman way.
I dropped telerik:RadAjaxLoadingPanel on another sample page and tried running it and it worked! I coludn't get the logic behind this behavior so I created a new page and transfered code step by step to this new page, deleted the old page and and renamed this new page with the old one and guess what...it worked !! :)
Happy for the result but wondering for the reason. I guess some mess might have happened in autogenerated code of the page somewhere at the time of creation or afterwards by mistake.

Anyways, my problem is solved so I am good to go. Thanks for all the promt replies.

Regards,
Mangesh
Tags
General Discussions
Asked by
Mangesh
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Mangesh
Top achievements
Rank 1
Share this question
or