Adding XSL webparts to a page in SharePoint 2010 programmatically

I needed this functionality today and found a great blog post about it. The power of XSL truly comes to surface in these webparts. For example, the DataFormWebPart needs a datasource to be configured. Doing this in code is about the same as copying the aspx from SharePoint Designer. I would suggest you build up … More Adding XSL webparts to a page in SharePoint 2010 programmatically