CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: Date Entered: 10/23/2006 11:21:54 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 11 Views: 56 Favorited: 0 Favorite
12 Items, 1 Pages 1 |< << Go >> >|
"bernadou" <>
NewsGroup User
CSSAdapters and MOSS 2007, how to get it done?10/23/2006 11:21:54 PM

0

We have been experimenting with MOSS 2007 as a CMS for our organization.  As an educational organization subject to 508 compliance, our front end web designers/developers have specfied that we need to get the CSSAdapters implemented on the Shareponint navigation controls so they can go nuts with CSS. 

We found this article http://blogs.tamtam.nl/frank/ , so, myself and one other person here in our organization have been struggling with getting it to work on a regular asp.net menu control, but using an assembly instead of the .VB source code files (we can get it to work with .vb code files to work without issue).

So, here is what we have done that does work well…

  1. Dowloaded and installed the CSS Friendly ASP.NET 2.0 Control Adapters code from MS.
  2. As discussed in the article, we created a new web app using the , and, added a class library which included all the adapter code files and we compiled to a signed assembly named: CSSAdapters.dll.
  3. We registered the assembly to the GAC, and, can verify that it exists (c:\windows\assembly\cssAdapters)

Here’s where we ran into trouble…

We moved the CssAdapter.browser file, into C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\Browsers and edited it to look for our assembly in the GAC:

<adapter controlType="System.Web.UI.WebControls.Menu"
               
adapterType="CSSFriendly.MenuAdapter, CssAdapters, 
                                    
version=1.0.0.0, 
                                    
Culture=neutral, 
                                    
PublicKeyToken=<The Token>"/>

We attempted to register the adapter at the machine level by running aspnet_regbrowsers.exe but got a “Cannot Load Type CSSFriendly.MenuAdapter” error.

As you can imagine, we’ve done all kinds of testing and we’ve verified…

We can use CSSAdapters.DLL when placed in the BIN of a local test site in combination with the local .browser file configured like this:

<adapter controlType="System.Web.UI.WebControls.Menu"
               
adapterType="CSSAdapters.CSSFriendly.MenuAdapter, CssAdapters"/>

So, this tells us that the .dll is good, and, all the associated code is good (right?).

We think our error is getting ASP.NET to play nice with the machine level so when we try to move all this over to the MOSS 2007 it will pick it up.  I don’t think that is possible if we try to just drop the App_Code and App_Browser files over into the root dir of the MOSS installation (right?).

I think if we can get the support of the ASP.NET community in working through this problem, this could be a huge help to others that come along later.

Thanks for any assistance you can offer.

Bernie

"bernadou" <>
NewsGroup User
Re: CSSAdapters and MOSS 2007, how to get it done?10/26/2006 7:03:54 PM

0

Ok, we found the errors both in our work, and in the article.  By working through both we were able to get SharePoint to render the Menu control as a list instead of a table.  Very cool.

 If you happen to be one of those who wish to try this be sure you....

1. Change the syntax below from "ControlAdapters" to "CSSAdapters" (assuming your assembly is called CSSAdapters which was our case)

<browsers>
   <browserrefID="Default">
      <controlAdapters>
         <adapter controlType="System.Web.UI.WebControls.Menu"
               adapterType="CSSFriendly.MenuAdapter, ControlAdapters, 
                                    version=1.0.0.0, 
                                    Culture=neutral, 
                                    PublicKeyToken=<Your Token>"/>
      </controlAdapters>
   </browser>
</browsers>

2. Rember that the article appears to be operating under the assumption that you are performing the outlined steps on the same server that you have SharePoint installed.  If not, repeat the GAC install and aspnet_regbrowsers.exe on your SharePoint server(s).

If you follow these two recommendations, it should work!  Good Luck.

 

B

"anabhra" <>
NewsGroup User
Re: CSSAdapters and MOSS 2007, how to get it done?11/16/2006 9:52:09 PM

0

I am farily new to this stuff...would it be asking for too much if I ask you to post your code?
"bernadou" <>
NewsGroup User
Re: CSSAdapters and MOSS 2007, how to get it done?11/16/2006 9:57:22 PM

0

We didn't write any specific code of our own to get this to work.  We just followed the article I noted (http://blogs.tamtam.nl/frank/) using the CSS adapter code you can download here:

http://www.asp.net/CSSAdapters/Default.aspx

Good luck! LMK if you have any more questions.

 

B

"anabhra" <>
NewsGroup User
Re: CSSAdapters and MOSS 2007, how to get it done?11/17/2006 8:06:53 PM

0

I think i am on the right track now. You are right all one has to do is drop the adapter class in the bin folder and setup the .browser file. One thing I am experiencing is that when I drop the new .browser file the old compat.browser starts to give errors with nokia or samsung devices. I got rid of the file but guess I need to bring it back in after some research!! Thanks fo ryour help, regards, anabhra
"aakashuk" <>
NewsGroup User
Re: CSSAdapters and MOSS 2007, how to get it done?11/20/2006 5:27:11 PM

0

Working with Navigation Control in MOSS 2007

 

I am working on MOSS navigation for couple of days and I faced lots of issue which I resolve and it took lot of my time and I don?t want every one do go through this all time consuming process.

 

Scenario:

As you know all control in MOSS is render as TABLE and when you working in Government project it have become pretty obvious that all the SharePoint control should be rendered as CSS styling. As you know Microsoft has come with CSS Adapter for some of the ASP.NET 2.0 control like TreeView, Menu  etc so that it can be rendered as CSS.I will show step wise instruction how you can modify a SPTreeControl of SharePoint and apply CSS Adapter into it.

 

I will post the url where I have uploaded the pdf document about this Issue and how I resolved in my Project.


Shambhu Kumar
Parity Ltd.
Wimbledon
London
"anabhra" <>
NewsGroup User
Re: CSSAdapters and MOSS 2007, how to get it done?11/22/2006 9:34:50 PM

0

I have been able to implement the css adapters too. My problem though is the "selected" item setting. After I click on a menu item and the page is refreshed, it does not seem to retain the selected setting. Is there a way to debug the modified adapter code? thanks, anabhra
"Troels" <>
NewsGroup User
Re: CSSAdapters and MOSS 2007, how to get it done?1/19/2007 12:18:08 PM

0

I've tried this for 2 days now and i cant get it to work. Sharepoint keeps giving an error message "File Not Found" when i enable the browsers file. If i remove the reference to my assembly everything works. I've placed the assembly in the GAC and the various bin folders and the source in the app_code folder and yet i keep getting this error. Do tou have any suggestions that might help?
"Troels" <>
NewsGroup User
Re: CSSAdapters and MOSS 2007, how to get it done?1/19/2007 1:47:16 PM

0

Note to self: When Sharepoint gives error "File Not Found", check if classes are declared as "Public".Super AngryBig Smile
"bernadou" <>
NewsGroup User
Re: CSSAdapters and MOSS 2007, how to get it done?2/23/2007 11:35:53 PM

0

Our solution to this problem was to find the web.config file that SP copies to your provisioned site (c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\CONFIG\compat.browser).  Comment out these lines (You'll need to do this on the compat.browsers file in your newly created SP site in IIS too):

<!--
    <browser id="InfrawareSamSung" parentID="SKTDevicesSamSung">
        <identification>
            <userAgent name="browserType" match="(35|15|25)" />
        </identification>
        <capabilities>
            <capability name="canInitiateVoiceCall"                 value="True" />
            <capability name="cookies"                              value="True" />
            <capability name="isColor"                              value="True" />
            <capability name="optimumPageWeight"                    value="700" />
            <capability name="preferredRenderingMime"               value="text/vnd.wap.wml" />
            <capability name="preferredRenderingType"               value="wml12" />
            <capability name="rendersBreaksAfterWmlInput"           value="True" />
            <capability name="rendersWmlSelectsAsMenuCards"         value="True" />
            <capability name="requiresFullyQualifiedRedirectUrl"    value="True" />
            <capability name="supportsEmptyStringInCookieValue"     value="False" />
            <capability name="preferredRequestEncoding"             value="ks_c_5601-1987" />
            <capability name="preferredResponseEncoding"            value="ks_c_5601-1987" />
        </capabilities>
    </browser>

    <browser id="InfrawareLG" parentID="SKTDevicesLG">
        <identification>
            <userAgent name="browserType" match="(35|15|25)" />
        </identification>
        <capabilities>
            <capability name="canInitiateVoiceCall"                 value="True" />
            <capability name="cookies"                              value="True" />
            <capability name="isColor"                              value="True" />
            <capability name="optimumPageWeight"                    value="700" />
            <capability name="preferredRenderingMime"               value="text/vnd.wap.wml" />
            <capability name="preferredRenderingType"               value="wml12" />
            <capability name="rendersBreaksAfterWmlInput"           value="True" />
            <capability name="rendersWmlSelectsAsMenuCards"         value="True" />
            <capability name="requiresFullyQualifiedRedirectUrl"    value="True" />
            <capability name="supportsEmptyStringInCookieValue"     value="False" />
            <capability name="preferredRequestEncoding"             value="ks_c_5601-1987" />
            <capability name="preferredResponseEncoding"            value="ks_c_5601-1987" />
        </capabilities>
    </browser>

    <browser id="InfrawareSKY" parentID="SKTDevicesSKTT">
        <identification>
            <userAgent name="browserType" match="(35|15|25)" />
        </identification>
        <capabilities>
            <capability name="canInitiateVoiceCall"                 value="True" />
            <capability name="cookies"                              value="True" />
            <capability name="isColor"                              value="True" />
            <capability name="optimumPageWeight"                    value="700" />
            <capability name="preferredRenderingMime"               value="text/vnd.wap.wml" />
            <capability name="preferredRenderingType"               value="wml12" />
            <capability name="rendersBreaksAfterWmlInput"           value="True" />
            <capability name="rendersWmlSelectsAsMenuCards"         value="True" />
            <capability name="requiresFullyQualifiedRedirectUrl"    value="True" />
            <capability name="supportsEmptyStringInCookieValue"     value="False" />
            <capability name="preferredRequestEncoding"             value="ks_c_5601-1987" />
            <capability name="preferredResponseEncoding"            value="ks_c_5601-1987" />
        </capabilities>
    </browser>

    <browser id="InfrawareMotorola" parentID="SKTDevicesMotorola">
        <identification>
            <userAgent name="browserType" match="(35|15|25)" />
        </identification>
        <capabilities>
            <capability name="canInitiateVoiceCall"                 value="True" />
            <capability name="cookies"                              value="True" />
            <capability name="isColor"                              value="True" />
            <capability name="optimumPageWeight"                    value="700" />
            <capability name="preferredRenderingMime"               value="text/vnd.wap.wml" />
            <capability name="preferredRenderingType"               value="wml12" />
            <capability name="rendersBreaksAfterWmlInput"           value="True" />
            <capability name="rendersWmlSelectsAsMenuCards"         value="True" />
            <capability name="requiresFullyQualifiedRedirectUrl"    value="True" />
            <capability name="supportsEmptyStringInCookieValue"     value="False" />
            <capability name="preferredRequestEncoding"             value="ks_c_5601-1987" />
            <capability name="preferredResponseEncoding"            value="ks_c_5601-1987" />
        </capabilities>
    </browser>
--> 

This will then provision all your future sites without the offending entries.  I 'think' this is only used to change the rendering behavior based on the type of browser used to create the http request.

Hope this helps.

B

"rcalmann" <>
NewsGroup User
Re: CSSAdapters and MOSS 2007, how to get it done?4/6/2007 11:40:12 PM

0

I have the same problem, the menu code never finds any of the items as selected.

You can debug by build the code into a DLL, put it in the app_bin folder, modify the browser file as:

<adapter controlType="System.Web.UI.WebControls.Menu" adapterType="CSSFriendly.MenuAdapter, CssAdapters"/>

where: adapterType = Namespace.Classname, AssemblyName

Good luck

"mossman" <>
NewsGroup User
Re: CSSAdapters and MOSS 2007, how to get it done?4/9/2007 9:53:02 PM

0

Here's an article a friend of mine wrote on getting them to work in a publishing site. Be forewarned that there are issues with the treeview and the admin interfaces.

http://www.sharepointblogs.com/mossman/archive/2007/03/08/css-friendly-control-adapters-in-sharepoint-2007-a-walk-through.aspx

12 Items, 1 Pages 1 |< << Go >> >|


Free Download:













bug? login control fires onloggedin and onloginerror twice with css friendly adapters

javascript warning in treeviewadapter.js

can writebegintag generate spaces instead of tabs?

menu outputs span tags even when adapterenabled=false :-( please help!

cssfriendly menus not working in ie6

using css adapters displaying menus over dropdown list

phantom menus

generate a .dll file from the app_code/adapters .cs files?

menu with static display and control adapters

setting id for menu adapter and output it in the li tags from exo_duz

formal justification for using css-friendly control adapters

re: using cssfriendly adapters and template conversion

custom menu control - inline css problem

help

horizontal menu 1st tier text overlapping 3rd tier menu items

horizontal menu width issue

variable width of horizontal top level menu elements?

moss2007 & cs2007 support ?

changepassword validation group

detailsview rendered as overlaped name and value

loginstatusadapter requires membershipprovider

installation/config problem

partial install success

treeview cssadapter theme does not work with function log out anymore

ie 7 problem with css

css friendly adapter, disable for ie6

issue with menu appearance in ie

q: horizontal menu - varying width for top elements ?

disappearafter vs javascript settimeout

warning cssselectorclass

menu rendering with javascript dopostback defeats search engines

visual studio 2008 compatible?

how to uninstall css adapter 1.0 site template?

scroll through the table body cells while table header and table footer information remains "in view". in ie7

retrofitting css adapters into an existing website

node selection problem in cssadapter tree view

how to create an adapter for the sitemappath control? how to handle the various templates (rootnodetemplate, currentnodetemplate, nodetemplate...)?

selected | alternate row deon't work: fix

css friendly horizontal menu displaying menu too far to the right in the browser window

mix css / non-css controls in same web app?

bug: urls not resolving correctly

stylesheet question

questions regarding details view in input mode.

treeview not keeping state

show path back to root node

how exactly do you use these?

cssadapters and moss 2007, how to get it done?

safari menu control

css friendly adapters (beta3) can't find css file

detailsview not rendering correctly with insertvisible attribute

   
  Privacy | Contact Us
All Times Are GMT