Settings tutorial needed

Last post 07-30-2008 10:51 PM by devinmccloud. 1 replies.

Sort Posts:

  • Settings tutorial needed

    07-20-2008, 8:40 PM
    • Loading...
    • wuz
    • Joined on 06-05-2008, 1:07 AM
    • Posts 63

    Hello everybody,

    I am new to CSS FRiendly Control Adapters but the start was pretty straight forward.

    1) I referenced the References to  CSSFriendly.dll

    2) I imported CSSFriendlyAdapters.browser to App_Browsers

    Withput any changes to the webconfig my menus where no rendered with ul, li instead of tables. So far so good, but when i just wanted to do some minor css modifications in my Standard styleseet as described in the whitepaper

    ul.AspNet-Menu li
    {
    background:Blue;
    }
    nothing happened.
    I then created a Menu.css and suddenly the changes became affective.

    In my eyes there is to much magic going on, where do i define the name of the css file and the name of the css classes like "AspNet-Menu". I am sure there are some config possiblilties but i could not find them at a first glance in the whitepaper, so thanks for any further resources.

    greetings  

     

  • Re: Settings tutorial needed

    07-30-2008, 10:51 PM
    • Loading...
    • devinmccloud
    • Joined on 11-15-2006, 3:54 PM
    • Fargo,ND
    • Posts 93

    You need to add a menu control and sitemapdatasource to the page.

      

      
     <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" EnableViewState="False" ShowStartingNode="False" />  
    
     <asp:Menu ID="MainMenu" runat="server" DataSourceID="SiteMapDataSource1" CssSelectorClass="MainMenu" Orientation="Horizontal" EnableViewState="False" MaximumDynamicDisplayLevels="0">   
     
     

    you need to define the CssSelectorClass in your menu control. That needs to match you CSS styles. If you store your CSS file in the App_Theme folder then you need to reference this theme in the web.config file. 

     

     
    <pages styleSheetTheme="Theme1" />
     
      
    Jer
Page 1 of 1 (2 items)
Microsoft Communities
Page view counter