ASP.NET Control Adapters

ASP.NET 2.0 introduced the concept of control adapters, which allow developers to override the HTML that gets rendered for specific controls. One example is a list of items rendered horizontally in ASP.NET. This has traditionally been accomplished with a <table>; however, using a control adapter, a developer could override this with a <ul> tag and CSS, which is more contextually appropriate. Microsoft released a group of CSS Friendly Control Adapters in Mar 2007 and we have extended this to encapsulate SharePoint blogs, wikis, and other web parts, as detailed below.

Summary

Alt Text Missing Id Iframe Note Resizing Support Missing Label Tables to Divs Table Summary Other
Advanced Search Box x
Advanced Search Box Textbox x x
Blog, Edit Comment, Body x
Blog, Edit Comment, Title x
Blog, Edit Item, Body x
Blog, Edit Item, Category x
Blog, Edit Item, Hour Label x
Blog, Edit Item, Minute Label x
Blog, Edit Item, Published Label x
Blog, Edit Item, Title Label x
Blog, New Category, Title Label x
Blog, New Category, Body Label x
Blog, New Comment, Title Label x
Blog, New Item, Body Label x
Blog, New Item, Calendar Iframe x
Blog, New Item, Category Label x
Blog, New Item, Hour Label x
Blog, New Item, Minute Label x
Blog, New Item, Published Label x
Blog, New Item, Title Label x
Blog, New Link, Description Label x
Blog, New Link, Notes Label x
Blog, New Link, URL Label x
Choice Filter x x
Choice Filter Textbox x x
Date Filter x x
Empty Title (RNIB) x
Excel Web Access, Iframe x2
Excel Web Access, Image x
Form Web Part x x
I Need To x
Div Dir (LBI Example) x
Image Alt Blank (MS best practice) x
People Search Box x x
Relevant Documents x
Search Box x
SharePoint List Filter x
SharePoint List Filter, Textbox x
Site Aggregator, Iframe x
Site Aggregator, Label x x2
Textbox x
Text Filter x
Text Filter, Textbox x
Web Part Zone x x
Wiki, Edit Item, Name x
Wiki, Edit Item, Wiki Content Label x

Adapter Details

  • Advanced Search Box
    • Property label for Pick a Property drop-down
    • Operator label for Inclusion Operator drop-down
    • Search label for Enter Search Phrase textbox
    • And Or label for And Or Operator drop-down
  • Advanced Search Box Textbox
    • ms-advsrchPropValue class for All of these words textbox to allow resizing
    • ms-advsrchPropValue class for The exact phrase textbox to allow resizing
    • ms-advsrchPropValue class for Any of these words textbox to allow resizing
    • ms-advsrchPropValue class for None of these words textbox to allow resizing
  • Blank Image Alt Text (MS best practice)
    • Changed all alt=" " to alt=""
  • Blog, Edit Comment, Body
    • Converts Body text to a label for the Body text area
  • Blog, Edit Comment, Title
    • Converts Title text to a label for the Title textbox
  • Blog, Edit Item, Body
    • Converts Body" text to a label for the Body* text area
  • Blog, Edit Item, Category
    • Converts Category" text to a label for the Category* drop-down
  • Blog, Edit Item, Hour Label
    • Published Hours label for the Hours drop-down
  • Blog, Edit Item, Minute Label
    • Published Minutes label for the Minutes drop-down
  • Blog, Edit Item, Published Label
    • Converts Published text to a label for the Published textbox
  • Blog, Edit Item, Title Label
    • Converts Title text to a label for the Title textbox
  • Blog, New Category, Title Label
    • Converts Title text to a label for the Title textbox
  • Blog, New Category, Body Label
    • Converts Body text to a label for the Body text area
  • Blog, New Comment, Title Label
    • Converts Title text to a label for the Title textbox
  • Blog, New Item, Body Label
    • Converts Body text to a label for the Body textbox
  • Blog, New Item, Calendar Iframe
    • <iframe> element displaying, "The calendar requires iframe support, please ask the system administrator for help"
  • Blog, New Item, Category Label
    • Converts Category text to a label for the Category textbox
  • Blog, New Item, Hour Label
    • Published Hours label for the Hours drop-down
  • Blog, New Item, Minute Label
    • Published Minutes label for the Minutes textbox
  • Blog, New Item, Published Label
    • Converts Published text to a label for the Published textbox
  • Blog, New Item, Title Label
    • Converts Title text to a label for the Title textbox
  • Blog, New Link, Description Label
    • Converts Type the description text to a label for the Description textbox
  • Blog, New Link, Notes Label
    • Converts Notes text to a label for the Notes textbox
  • Blog, New Link, URL Label
    • Converts URL text to a label for the URL textbox
  • Choice Filter
    • Selected Values label for Choice Filter list view
    • ms-choicefiltertxtbx CSS class for the Selected Values list to allow resizing
  • Choice Filter Textbox
    • Selected Values label for Choice view Filter Textbox list view
    • ms-choicefiltertxtbx CSS class for the selected view to allow resizing
  • Date Filter
    • Enter Date label for the Date Filter textbox
    • <iframe> element displaying, "The date picker requires iframe support, please ask the system administrator for help"
  • Div Dir (LBI Example) -- NOTE: This web adapter may not be necessary; if anyone has more insight, let us know, since we're still digging in
    • Removed all <div dir=""> instances
  • Empty Title (RNIB)
    • Removed all title="" instances
  • Excel Web Access, Iframe
    • 2 <iframe> elements displaying, "Excel web access requires iframe support, please ask your system administrator for help"
  • Excel Web Access, Image
    • Alt text for Picture of binoculars image
  • Form Web Part
    • Enter Value label for textbox
    • T1 id for textbox
  • I Need To
    • Select Option label for Choose Task drop-down
  • People Search Box
    • Enter Search Words label for the Enter search words textbox
    • Removed title and alt attributes from Enter search words textbox
    • Removed black right arrow
    • Removed black down arrow
  • Relevant Documents
    • Alt text for Checked Out image
  • Search Box
    • Search scope label for the All Sites drop-down
    • Enter search label for the Enter search words textbox
  • SharePoint List Filter
    • Selected values label for Selected values list view
  • SharePoint List Filter, Textbox
    • ms-sharepointlistfiltertxtbx class for Selected values list to allow resizing
  • Site Aggregator, Iframe
    • <iframe> element displaying, "The site aggregator requires iframe support, please ask your system administrator for help"
  • Site Aggregator, Label
    • SiteURL id for Site URL textbox
    • Enter URL label for Site URL textbox
    • Enter Name label for Enter Name textbox
  • Textbox
    • Change title="Enter search words" class="ms-sbplain" to alt="Enter search words" title="Enter search words" class="ms-sbplain"
  • Text Filter
    • Text Filter label for Text Filter textbox
  • Text Filter, Textbox
    • ms-textfiltertextbox class for Text Filter textbox to allow resizing
  • Web Part Zone
    • Replaces <table> with <div> elements
  • Wiki, Edit Item, Name
    • Converted Name text to a label for the Name textbox
  • Wiki, Edit Item, Wiki Content Label
    • Converted Wiki Content text to a label for the Wiki Content text area

Composite Adapters

Additionally, the following adapters combine two or more of the aforementioned adapters into one composite adapter.
  • Blog/Wiki
  • Excel Web Access
  • Site Aggregator

Last edited Oct 27, 2009 at 2:21 AM by flanakin, version 15

Comments

No comments yet.