CSS Friendly Adapters and .NET 3.5? Is it possible?

Last post 06-04-2009 6:03 AM by misuk11. 13 replies.

Sort Posts:

  • Hmm [^o)] CSS Friendly Adapters and .NET 3.5? Is it possible?

    06-23-2008, 4:43 AM
    • Member
      2 point Member
    • ADX
    • Member since 06-23-2008, 8:24 AM
    • Spain
    • Posts 7

    Hi,

    I'm using ASP.NET 2.0 CSS Friendly Control Adapters from CodePlex. I know adapters work properly under framework 2.0, but I'm building my project under Visual Studio 2008 (framework 3.5), so there are some incompatibilities.

    I can't get the Menu Control Adapters working properly (they are shown as <table> elements, but not as <div> elements). 

    Did anyone get this working? Is there anyone working on it? Can anyone help me?

    I need to get this working as soon as possible, and my knowledge isn't powerful enough to improve the CSSFriendly library. 

     

    Thanks in advantage Wink

     

    NOTE: I'm using the 11160 build, the lastest one until today.

    NOTE 2: Sorry about my english. 

  • Re: CSS Friendly Adapters and .NET 3.5? Is it possible?

    06-23-2008, 9:50 AM
    • All-Star
      23,803 point All-Star
    • pkellner
    • Member since 11-12-2004, 10:42 AM
    • San Jose, California
    • Posts 3,567
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    I downloaded what was in codeplex about 2 weeks ago and have the menu control working no problem.

    Here is the site that uses it.  I did force it to use <table> but it was using  <li> by default originally.

    http://www.siliconvalley-codecamp.com/Default.aspx

    Peter Kellner
    http://peterkellner.net
    Microsoft MVP • ASPInsider
  • Re: CSS Friendly Adapters and .NET 3.5? Is it possible?

    07-02-2008, 5:47 PM
    • Member
      115 point Member
    • OutOfTouch
    • Member since 03-13-2008, 10:03 PM
    • Posts 216

    Hi Peter,

    Why would someone want to force it to use a table?

    Just curious as that doesn't make sense to me, I thought the point of the library, as I understand it, is to render tags that load faster and use valid css.

    I am just curious, I am sure you have a good reason. It is cool to know it is working with 3.5 since I haven't tried that yet.

     Regards

  • Re: CSS Friendly Adapters and .NET 3.5? Is it possible?

    07-03-2008, 5:39 AM
    • Member
      2 point Member
    • ADX
    • Member since 06-23-2008, 8:24 AM
    • Spain
    • Posts 7

    Thanks for support. I've finally solved the problem. There was a small (personal) problem with my .browser file.

    It works perfectly on ASP.NET 3.5 with codeple'x cssfiendly 11160. Don't forget to try those fantastic adapters.

     

    Regards,

    ADX

  • Re: CSS Friendly Adapters and .NET 3.5? Is it possible?

    07-03-2008, 2:10 PM
    • All-Star
      23,803 point All-Star
    • pkellner
    • Member since 11-12-2004, 10:42 AM
    • San Jose, California
    • Posts 3,567
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    it was a browser compat issue that lead us to this.

    Peter Kellner
    http://peterkellner.net
    Microsoft MVP • ASPInsider
  • Re: CSS Friendly Adapters and .NET 3.5? Is it possible?

    11-13-2008, 12:44 PM
    • Participant
      1,282 point Participant
    • misuk11
    • Member since 08-05-2003, 2:40 AM
    • Posts 745

    what exactly do you mean

    'codeplex's cssFriendly 11160'

     

    Im using .net 3.5 and have downloaded 1.0 production.  Ive installed all the adapter files, (in app_code/adapters)  but when I put

     using CSSFriendly;

    in my codebehind, I get an error

    'the type or namespace cssfriendly coud not be found'

    Are the 1.0 production files up to date ?  I cant find the vsi files or the example project.  The download is just a cut down project not the web site project.

     

  • Re: CSS Friendly Adapters and .NET 3.5? Is it possible?

    11-13-2008, 1:02 PM
    • Member
      115 point Member
    • OutOfTouch
    • Member since 03-13-2008, 10:03 PM
    • Posts 216

    On codeplex download the latest change set that is what 11160 means it is a changeset number.

     http://www.codeplex.com/cssfriendly/SourceControl/ListDownloadableCommits.aspx

  • Re: CSS Friendly Adapters and .NET 3.5? Is it possible?

    11-13-2008, 1:16 PM
    • Participant
      1,282 point Participant
    • misuk11
    • Member since 08-05-2003, 2:40 AM
    • Posts 745

    so this is the very latest version ? 

    Ive downloaded it and unzipped it, I notice that there is no IEMenu7.css file, yet on Sctott Guthries blog, he shows an IE7 version.  Is this his own version or is it available somewhere ?

  • Re: CSS Friendly Adapters and .NET 3.5? Is it possible?

    11-13-2008, 1:26 PM
    • Member
      115 point Member
    • OutOfTouch
    • Member since 03-13-2008, 10:03 PM
    • Posts 216

    If you downloaded 16291 then that would be the latest that I know of. If I recall correctly the CSS and JavaScript are now embedded in the library.

    I don't remember a CSS file for IE7 just one for IE6.

  • Re: CSS Friendly Adapters and .NET 3.5? Is it possible?

    11-13-2008, 2:08 PM
    • Member
      2 point Member
    • ADX
    • Member since 06-23-2008, 8:24 AM
    • Spain
    • Posts 7

    I'm not sure but I think that the IE6 css file contain certain hacks to correctly show up menus. IE7 doesn't need any external stylesheet.

    Another thing...

    Does anyone know whether CSSFriendly is compatible with MVC.NET or not compatible?

    Thanks in advantage. 

    Filed under:
  • Re: CSS Friendly Adapters and .NET 3.5? Is it possible?

    11-14-2008, 8:43 AM
    • Member
      6 point Member
    • mutt1170
    • Member since 10-31-2007, 10:28 AM
    • Posts 6

    Up till recently I have coding in VB.Net and using the old CSS Adapters (.vb files and jscript). Changing over to3.5 & C# (it's where all the money is goingGeeked) I obviously can't use the VB adapters hence downloading the newer DLL adapter setup.

     I too am having problems with the MenuControl:

    It's rendering as <div><ul><li> fine. But...

    No matter how I set the MaximumDynamicDisplayLevels and StaticDisplayLevels or the Orientation it automatically inserts some CSS at the top of the page which effectivley turns it into a drop down menu.  Because these CSS styles are embedded on the page they will override any I try to create using stylesheets and/or themes.

    Is there a way to "turn off" this automatic CSS insertion so I can create my own style?

  • Re: CSS Friendly Adapters and .NET 3.5? Is it possible?

    11-14-2008, 10:00 AM
    • Participant
      1,282 point Participant
    • misuk11
    • Member since 08-05-2003, 2:40 AM
    • Posts 745

    Ive now added all the various c# classes to my project and referenced the CSSFriendly.dll.

    After putting a datalist on a page, running it, then viewing the source, the datalist is still being rendered as a table.

    Do I have to somehow 'switch on' the control adapters ?  Is this performed in code ?

  • Re: CSS Friendly Adapters and .NET 3.5? Is it possible?

    11-17-2008, 4:36 AM
    • Member
      6 point Member
    • mutt1170
    • Member since 10-31-2007, 10:28 AM
    • Posts 6

    mutt1170:
    Is there a way to "turn off" this automatic CSS insertion so I can create my own style?

     

    I do believe I have found the answer to my own question.  On downloading the source code I've noticed .css files for each adapter. I am assuming(dangerous thing to do) that if I remove the styles from these sheets and then compile the .dll I should get the effect I'm looking for.

     

    I'll report back....

     UPDATE:

     Yup!

    I commented out all the styles in the Menu.css file then recompiled the DLL.  The menu control now renders as bare <ul><li><a> html with no embedded styles.

  • Re: CSS Friendly Adapters and .NET 3.5? Is it possible?

    06-04-2009, 6:03 AM
    • Participant
      1,282 point Participant
    • misuk11
    • Member since 08-05-2003, 2:40 AM
    • Posts 745

     can anyone tell me whats happened to the vsi file for the control adapters

    this page used to have a link to a vsi download that installed the sample website, now it just links to codeplex to download the control adapters source code with a few examples

    http://www.asp.net/CssAdapters/default.aspx

     

    where can i find css examples for the login controls ?

    The vsi file installed a copy of the actual website, with lots of stying examples, it seems to have disappeared !

Page 1 of 1 (14 items)