Using Themes and RadMenu

4 posts, 0 answers
  1. Mark Perry
    Mark Perry avatar
    50 posts
    Member since:
    Mar 2007

    Posted 02 May 2008 Link to this post

    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?

  2. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 02 May 2008 Link to this post

    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
  3. Mark Perry
    Mark Perry avatar
    50 posts
    Member since:
    Mar 2007

    Posted 05 May 2008 Link to this post

    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?
  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 05 May 2008 Link to this post

    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
Back to Top