Programatically add XSLTList view webpart to page that points to an external list.
How can I programatically add XSLTList view webpart to page that points to an external list. It is easy to do using a normal list, and you can do it in the web interface, but I can't find any examples on how to do this using code.