.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Newbie needs help to compile CSS Friendly Control Adapters

Posted By:      Posted Date: October 09, 2010    Points: 0   Category :ASP.Net

I use VB.NET and create Website Projects (not Web Application Projects). Up to now, I have had little need to understand much about the compilation processes in VS2010.

However, to make use of the CSS Friendly Control Adapters it would appear that I have to compile the source code into a CSSFriendly.dll file. I would appreciate some detailed guidance on how to achieve this.


View Complete Post

More Related Resource Links

Newbie needs help to compile CSS Friendly Control Adapters


I use VB.NET and create Website Projects (not Web Application Projects). Up to now, I have had little need to understand much about the compilation processes in VS2010.

However, to make use of the CSS Friendly Control Adapters it would appear that I have to compile the source code into a CSSFriendly.dll file. I would appreciate some detailed guidance on how to achieve this.


are the "CSS Friendly Control Adapters" being used in ASP.NET 3.5 and above?


I am a long time ASP.NET developer, but have just encountered the issue of CSS vs Tables in a deep manner (so far I have just used the built-in controls or just created my own controls).

I bought a great book on this issue, but the book is reffering the ASP.NET 2.0 via VS2005.

I am using ASP.NET 3.5 and above via VS2008/2010.

My first question is: are the "CSS Friendly Control Adapters" still alive in 2010 or maybe there are a new techniques being used?

My second question is:  are the "CSS Friendly Control Adapters" being used in ASP.NET 3.5 and above via VS2008/VS2010?

I will appreciate your help and advise.





Cant find vsi file for CSS Friendly Control Adapters


Hi guys

This is driving me crazy... I cant find the .vsi file for installing the CSS Friendly Control Adapters Project. Does anyone know where I can get this?

The following link: http://www.asp.net/cssadapters/ only leads to the CodePlex wiki where I can download the dll and a partial solution. Essentially, I'm looking for the source code to implement the Menu adapter.

Any help is much appreciated!

Addressing a specific node with CSS Friendly Control Adapters


Hello everybody,

I like the concept of the friendly control adapters, but I'm not sure if I can use them for my purpose.
My whole menu basically consist of one image, which itself contains the images for each menu item (is that understandable?).

Each menu item then displays only a certain part of the image.
I do this by shifting the background-position.

#navigation li#home a{
background-position:0px 0px;

/* Registration */
#navigation li#registration a:link, li#registration a:visited {
background-position:-106px -34px;

#navigation li#registration a:hover, li#registration a:focus {
background-position:-106px 0px;

/* Administration */
#navigation li#administration a:link, li#administration a:visited{
background-position:-212px -34px;

#navigation li#administration a:hover, li#administration a:focus{
background-position:-212px 0px;


I would like to do the same now with CSS Friendly, but I don't see how I can address each individual menu item node.
In static HTML I can give each link an ID (i.e. #administration), but I don't see how to do this with the asp:Menu control and CSS Friendly.

Can someone help me?

Thanks a lot,

CSS Friendly Control Adapters is not running with Update Panel of Atlas



I am using Atlas and I want to use the CSS Friendly Menu Control Adapters beta 2.0.

All the events are running properly but cannot able to get the result due to the update panel control of Atlas.

Can anyone suggest me, how can I use CSS Friendly Menu Control Adapters beta 2.0 with Update Panel Control of Atlas ?




Need help using control adapters at the machine level

Hi guys!

Let me explain our situation. I do web development at a university at which we have to meet strict accessibility guidelines. I've specially modified the adapters (as well as extended CompositeDataBoundControlAdapter to include GridView) for use on our site and to use with our global stylesheets as well as compiled the control adapters into a DLL.

The control adapters now all reside in the WebServices.CssFriendlyAdapters DLL.  (For example, WebServices.CssFriendlyAdapters.GridViewAdapter).

Currently, when someone drops an App_Browsers folder in to their site with the adapters specified, the adapters work. However, we'd like to be able to specify this in the C:\WINDOWS\Microsoft.NET\Framework\(version number)\CONFIG\Browsers directory so that the adapters work automatically without anyone having to move anything into App_Browsers for every site. To ensure that someone can still use the "old way" or will not be confused by their controls being adapted, I've written in code that uses the base rendering methods unless xhtmlConformance is set to "Strict" in the site's web.config file.

Anyway, on to the problem. When trying to compile the controlAdapters into the C:\WINDOWS\Microsoft.NET\Framework\(version number)\CONFIG\Browsers directory using aspnet_regbrowsers.exe (see http://msdn2.microsoft.com/en-us/library/ms229858.a

How to install the Css Friendly Control Adapter Source Code


Hi guys really new to ASP.NET I was trying to install the CSS Friendly control adapter but for some reason the instructions on the website seems outdated. I downloaded all the files (Source Code, DLL, Browser) I believe I need to add the DLL file to my website's Bin folder and the Browser file to the APP_Browsers folder is this correct? After I place this files how to I get it working? what do I have to do?

Also if I want to create a new DLL file from the Source code how do I do these? I opened the web-site with Visual Studio 2008 and I can see all the files in the solution explorer? But how do I compile this to a DLL file? I tried doing a build solution but all I get is an .sln file???

Any help would be greatly appreciated

Thanks in advance


Css Friendly Adapters - asp.net Horizontal Menu - IE6



Hopefully someone can help.

I have an asp.net menu with horizontal static top tier followed by 2 dynamic vertical lower tiers.

It renders fine in all other browsers etc. etc. - apart from IE6.

In IE6 the menu is not rendered horizontally and insttead the items are stacked vertically.

It is my understanding that when using horizontal orientation, the menu items are effectively floated next to each other. 

So I can get round this float problem in IE6 by specifying a width for the items i.e.:


*html .AdminMenu .AspNet-Menu-Horizontal ul.AspNet-Menu li
	width: 45px;
	text-align: left;
	margin: 0;
	padding: 0;

Problem is, I do not want to set the width for each item. If I do this then it means regardless of the length of the text the width will always be the same.

On other browsers I do not set a width but instead set left/right margin so that every item is evenly spaced.

How can I do this in IE6? Essentially each li should wrap the text and float nex

Extreme ASP.NET: Control Adapters


Control adapters let you provide alternate renderings of controls for mobile devices. But they can also be used to completely change the rendering of a con¬trol based on browser type, which can be useful in a number of situations.

Fritz Onion

MSDN Magazine October 2006

Printer Friendly Page from a listview control


Hi guys,

I am working on a web form that displays the data from an access data source into a list view control. I need an advice on how to create , render a new page printer freindly .not buttons, controls,,, I have implemented a  java script function to select which records I want to view in the printable page but I cannot came up with any idea on how  to use this to create the printable help..


web.config - adding css friendly adapters to existing website

Hi Forum,  Please help me with the major headache I've wasted hours trying to figure out!  I have done everything explained in the tuturial to add css friendly adaters to an existing site and still no luck.  I am thinking that it has to do with modifying my current web.config file to use the css adapters.  Problem is, I can't find any specific instructions as to what I have to do to the current web.config file to make the site compatible with the css adapters!  I tried to modify the config file based on what on the example, but nothing seems to work.  Any help would be greatly appreciated!  Thanks, D

Your opinion: Are CSS friendly Adapters dead in 2010?

What do you think? Is it wise to start to use CSS Friendly adapters at this point (2010) with these observations in mind: VS2010 and .Net4 are coming and may offer something new MVC is an option if you really want to manage your page layout Microsoft is not involved with CSSFA The codeplex project seems to be sleeping along It's been 4 years since it started   Is there a better way to get control of the HTML emitted by ASP.Net controls? I for one  am fed up with wrestling with the failures of browsers to handle the table code properly (e.g. applying classes) yet I am fearful of going down the CSS road when it seems so stale. What do you think? Your recommendation?

ASP.NET menu control with CSS Friendly dll casuses slow rendring

I am using ASP.NET menu control  with CSS Friendly dll casuses slow rendring,Is there any way i can make little bit fast rendring?Thanks in advance

help with error when using css friendly control adapter

I have installed the CSS friendly control adapters for my menus and treeview because the designer did the entire job in with <div><ul><li> instead of tables   so to adapt I installed the CSS adapter. Tyat worked great for my menu and treeview. Really. The thing is that I dont need the adapter for anything else then my menu and treeview But when I navigate to a page that has a regular wizard control (not a create user wizard) then it gets stuck on 1 line of code and gives the following error:  Unable to cast object of type 'System.Web.UI.WebControls.WizardStep' to type 'System.Web.UI.WebControls.TemplatedWizardStep'. What can I do? can I dissable part of the adapters to not adapt my wizard? When I get the error It is normally stuck on that line opf code below which is underlined and bold. Protected Overrides Sub RenderContents(ByVal writer As HtmlTextWriter) If (Extender.AdapterEnabled) Then Dim wizard As CreateUserWizard = Control If (Not IsNothing(wizard)) Then Dim activeStep As TemplatedWizardStep = wizard.ActiveStep If (Not IsNothing(activeStep)) Then If (Not IsNothing(activeStep.ContentTemplate)) Then activeStep.RenderControl(writer) If (wizard.CreateUserStep.Equals(activeStep)) Then WriteCreateUserButtonPanel(writer, wizard) End If ' Might need to add logic here to render nav buttons for other kinds of ' steps (besides t

Is is possible to pre-compile a single control or a page ...



I am working on an asp.net web site project with a large codebase.  Publishing the site takes about 30 minutes. Since I have to do this twice a day, this takes up too much of my time. Is there a way to publish only changed pages or controls. Visual studio does give an option to compile a single page or control by right clicking on it and selecting "build page". 

Is it possible to publish a single page, maybe through command line.


ASP.NET newbie - any good open source control packs?


As an ASP.NET newbie I'm trying to get an initial project going without laying out huge sums for advanced visual components. Can anybody recommend any good open source control libraries for ASP.NET?   Something that includes a table, tree, calendar, and the usual mix of input/display controls.

CSS friendly menu adapters and the iPhone



I have just built a horizontal menu with dropdowns using the CSS Friendly Adapters and it all works great. However, thought I'd test the site using the iPhone. The menu appears across the screen as it should, and the top layer links work. But when I hover/click on an item that has items below the dropdown does not appear.

any ideas why that is happening, could it be to with the friendly browsers file?

Cheers Rob.


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend