How to use with DLL

May 9, 2007 at 5:42 PM
I already have the CSS Friendly adapters running using the code vs the dll. (and I think they are great by the way) I'd like a little more detail on how to use the DLL. Can I delete the css, javascript, and adapters folders? Do I no longer need these lines in my head tag:

<link runat="server" rel="stylesheet" href="~/CSS/Import.css" type="text/css" id="AdaptersInvariantImportCSS" />
<!--if lt IE 7>
<link runat="server" rel="stylesheet" href="~/CSS/BrowserSpecific/IEMenu6.css" type="text/css">
<!endif-->
May 9, 2007 at 8:18 PM
With the current trunk, you don't need these.
Oct 29, 2007 at 12:34 PM
Is the BrowserSpecific/IEMenu6.css really added with the conditional behavior that makes it effective only in IE6 and older versions?

When looking at the source it seems that the IEMenu6.css file is always added but without any conditions or am I missing something here?

Code looks like this:

// IEMenu6.css -- only add if it is embedded
resource = "CSSFriendly.CSS.BrowserSpecific.IEMenu6.css";
filePath = Page.ClientScript.GetWebResourceUrl(type, resource);

// if filePath is not empty, embedded CSS exists -- register it
if (!String.IsNullOrEmpty(filePath))
{
string cssTag = "<link href=\"" + Page.ResolveUrl(filePath) + "\" type=\"text/css\" rel=\"stylesheet\"></link>";
if (!Page.ClientScript.IsClientScriptBlockRegistered(type, resource))
Page.ClientScript.RegisterClientScriptBlock(type, resource, cssTag, false);
}

/Per Salmi