I have several dozen subsites deployed as templates. I'm trying to edit XSL in a DataViewWebPart located on the default.aspx page in each site. I'm on attempt number 5 or 6 and could a hand.
If I find the web part using GetWebPartCollection or GetLimitedWebPartManager I have to cast the WebPart to a DataViewWebPart before I can edit XSL. The casting has me stumped. Is this the best method?
I assume I can reference the webpart by GetLimitedWebPartManager.WebParts["Part Name"] but I'm really trying to get to that XSL in the DataViewWebPart.
Any ideas on this cast or a better method?