Create an XSLT data presentation form web part without Sharepoint Designer

With Sharepoint Designer, there is a feature that allows you to convert a list of web parts to an XSLT data view (right-click on the web part in SPD and select "Convert to XSLT Data View"). I need to be able to simulate a control that is created using this process (from what I can say, it should be Microsoft.Sharepoint.WebPartPages.DataFormWebPart). My host does not allow the use of SPD, so this website must either be ready-made or packaged in WSP. Unfortunately, I do not find a way to do this.

Things I tried:

  • Save the web part as a .webpart in the SPD, and then deploy it as a custom web part. I get an error when I try to add a web part to my site “Type not found or not safe” (something like that). Is Microsoft.Sharepoint.WebPartPages.DataFormWebPart not safe?

  • Create a DataViewForm web part through a browser and add the same XSLT / Parameter code that is stored in the web part converted using SPD. Adding code has no effect (nothing happens).

  • For testing purposes, I converted the list web part to XSLT Data View using SPD, and then modified the XSLT / Parameter code through a browser to see what happens, and it worked fine. I think that at least makes it clear that pasting code like this should work.

My goal is to create a menu system like this one (which uses spd to create one): http://blog.pathtosharepoint.com/2009/01/15/a-drop-down-menu-the-sharepoint-way/ p>

+3
source share
1 answer

see the article published here: http://tjassens.com/?p=37 This section describes how to programmatically use xslt dataform / dataview webpart with multiple data sources (SPLists) and how to dynamically pass parameters to a web page.

0
source

All Articles