Worthwhile to use the CSS Friendly Adapters?

Last post 04-25-2009 7:39 PM by adrian23. 5 replies.

Sort Posts:

  • Worthwhile to use the CSS Friendly Adapters?

    03-26-2009, 8:11 PM
    • Member
      13 point Member
    • mgp22
    • Member since 05-09-2008, 8:19 PM
    • Posts 40

    I seem to see posts that identify bugs/problems getting these to work.  Is the CSS Friendly Menu control worth the extra trouble to install, etc?  Should I just use the standard Microsoft Menu control (that generates TABLE tags) to keep it simple?  I am no expert and just don't want a lot of headaches. :)

    tx in advance - matt

  • Re: Worthwhile to use the CSS Friendly Adapters?

    03-27-2009, 3:23 AM
    Answer

    It depends on how important your html is to you.  According to the W3C recommendations, tables should only be used for the display of tabular data, not the layout of pages or elements on pages. They can potentially cause some porblems for screenreaders for example. However, the CSS firendly adapters are poorly documented (in my opinion) and quite hard work.  I wouldn't use them.  But then I wouldn't use the menu control either.  I'd roll my own.

    A lot of the standard controls are not particularly great when it comes to the markup they generate, but I suppose you need to trade off convenience for optimal html - which won't affect how the vast majority of users see your pages anyway.

     

    Regards Mike
    [MVP - ASP/ASP.NET]
    My site    Please help - URGENT!!!    What ASP.NET can and can't do
  • Re: Worthwhile to use the CSS Friendly Adapters?

    03-27-2009, 11:15 AM
    • Member
      13 point Member
    • mgp22
    • Member since 05-09-2008, 8:19 PM
    • Posts 40

     Mike, thank you - that is exactly the kind of advice I want!  If you have any suggestions/guidelines on what you use to roll your own menus (e.g. DHTML, methods to highlight a chosen menu item on target page, etc.) it would be great.  Thanks again for your reply.

    Matt in NYC

  • Re: Worthwhile to use the CSS Friendly Adapters?

    03-27-2009, 12:03 PM
    Answer

    It depends on whether you want the menu to be database driven or static.  I have simply added some javascript and markup to a UserControl and used that before now.  Or you could just write a string to a Literal that does it exactly how you want, or perhaps Google to see if anyone has created a custom control that does what you want etc etc....

     

    Regards Mike
    [MVP - ASP/ASP.NET]
    My site    Please help - URGENT!!!    What ASP.NET can and can't do
  • Re: Worthwhile to use the CSS Friendly Adapters?

    03-27-2009, 1:36 PM
    • Member
      13 point Member
    • mgp22
    • Member since 05-09-2008, 8:19 PM
    • Posts 40

    Awesome - thanks.  I don't need a database-driven menu, so I suppose I will look for a user control, or just use master pages with a menu in the master page.

  • Re: Worthwhile to use the CSS Friendly Adapters?

    04-25-2009, 7:39 PM
    • Member
      17 point Member
    • adrian23
    • Member since 07-29-2005, 3:59 AM
    • Phoenix, AZ
    • Posts 12

    I'm kind of on the fence with wether I should use the CSS Adaptors. I dont get alot of confidence about it from looking at in on CodePlex project. It looks abandoned. Also, all the reported issues with the CSS Adaptors doesnt make it seem like a good idea.

    BUT, I like do the idea of not having these databound controls render <Table> elements.  

    Is it just us or does everyone else feel this way to?

Page 1 of 1 (6 items)