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

Using Themes and RadMenu

3 Answers 98 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Mark Perry
Top achievements
Rank 1
Mark Perry asked on 02 May 2008, 02:42 PM

I am using RadMenu on the Master Page and have ASP.NET Theme applied to the content pages. My issue is related to the <html> tag, if I use the tag <html runat=”server”> I get the error “The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). I searched for it and fonund that removing runat=”server” will solve the problem, but when I remove this I get an error “Using themed css files requires a header control on the page. (e.g. <head runat="server" />).”  So themes cannot be used without runat=”server”. I am not using any script tag that uses <% … %>.

 Following is the head tag of master page:

           

<head runat="server">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Impact Wrestling</title>

<link href="App_Themes/IWTheme_New/style.css" rel="stylesheet" type="text/css" />

</head>

The RadMenu has just text and NavigateUrl fields.

Please suggest a way so I can use both Themes and RadMenu?

3 Answers, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 02 May 2008, 04:49 PM
Hello Mark,

We tried to reproduce the problem you reported, but without much success. Please find attached a sample project which works without problems at our side(only place your dll's in it). Could you modify it so we are able to see the error?


Kind regards,
Helen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Mark Perry
Top achievements
Rank 1
answered on 05 May 2008, 02:41 PM
I have modified the code so you will now be able to generate the error at your end. I have noticed that the errors are on the content pages that use Ajax tags eg <ajax:AjaxPanel>. Please note that I can’t remove the runat=”server” from HEAD tag as I have to use ASP.NET skins. Can you suggest some other solution?

How do I attach the zip file?
0
Peter
Telerik team
answered on 05 May 2008, 03:10 PM
Hi Mark,

Please, open a support ticket and attach the zip file there.


Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Menu
Asked by
Mark Perry
Top achievements
Rank 1
Answers by
Helen
Telerik team
Mark Perry
Top achievements
Rank 1
Peter
Telerik team
Share this question
or