After desigining a fully CSS-layout-based site in the new Windows Marketplace, I'm finding it difficult to go back. Looking at complex tables and inline styles in other web applications is just giving me eye strain.

The worst thing is that ASP.NET's controls come that way out of the box. This means that web developers who want to gain traction quickly by using ASP.NET's out of the box controls get bogged down in layout updates in the long run.

Problem solved. I just found the new control adapters section on the ASP.NET site, which in addition to showing you how to override the rendering of the standard controls, gives you CSS-layout-based adapters for the common controls.  So you can grab these and go to town on your site's CSS.  Best of both worlds.

Example from Asp.Net: CSS-Styling the GridView Control

with 2 Comments

I sat down with the AdventureWorks2000 Business Data Catalog (BDC) sample for Microsoft Office SharePoint 2007 recently. Before I launched into it, my big question was, What is the BDC?

In SharePoint 2003, it was possible to display data from an external source, such as your company's database or web services, in SharePoint. Write a custom web part, have it query the data source, and display the data.  The big difference with the BDC in 2007 is that this data can now be fully integrated throughout SharePoint, just like Active Directory data. You can search on it using SharePoint's search engine, you can expose it via web parts shipped with SharePoint, or you can write your own to do entirely new things with it. No longer is the data stranded on a web part island.

By the way, setting up a BDC connection is no trivial endeavor. You must write a complex XML document which maps the data in your data source, as well as the method you use to connect, so SharePoint knows what to do with it. Once it's done, though, the BDC gives your portal a pretty powerful way to show people what's going on, right now, inside your company's systems.

To get started with the BDC, I worked through the AdventureWorks2000 Sample on MSDN. Todd Baginski has a nice SharePoint blog and has created a tool for generating BDC metadata automatically. I haven't used it but it might save you some time.

with 0 Comments

Microsoft Office SharePoint Server 2007 gives developers a great degree of control over the look and feel of their site.  I set out recently to figure out just exactly how much customization was possible, and what was practical.  While the technical details are explained well elsewhere, high level, here's what I found:

Because SharePoint pages are just ASP.NET, you can customize them just as you would a standard ASP.NET 2.0 web page.  Just to see how much I could do, I took my personal site and went crazy with layout and style changes. In this example, I modified only the master page for the site, adding new style declarations at the top and changing the HTML throughout.

Before:

...and after:

Unfortunately, this wasn't as easy as it could have been. Since working on the new Windows Marketplace, which we built using an entirely CSS-based layout, I'm used to having a lot more control over the UI by only modifying the styles. SharePoint's out-of-the-box pages use a traditional table-based layout, which increases the amount of time and hassle it takes to create a site as dramatically different as this one.