I'm unsure if this is possible but here goes. I have a SharePoint page that I am editing within SharePoint Designer. I have built a drop down box alike the following:
<asp:DropDownList runat="server" ID="MyTestSelect" AutoPostBack="True">
<asp:ListItem Text="Test Site 1" Value="TestS1"></asp:ListItem>
<asp:ListItem Text="Test Site 2" Value="TestS2"></asp:ListItem>
<asp:ListItem Text="Test Site 3" Value="TestS3"></asp:ListItem>
As well as the Site where the page I am working on I also have 3 subites: TestS1, TestS2 and TestS3.
I have a Web Services DVWP on my page that shows the sites SiteData (GetListCollection shows list of Site lists and libraries) of TestS1 site. I can export the web-part, update the code to point to the other sites (TestS2 and TestS3 - just update a handful
of URLs) and save seperately to re-use them on my page, however, I wanted to know if I could use the drop-down to dynamically build the URL's?
My webpart currently references "http://MyServer/Test/TestSiteArea/TestS1/_vti_bin/sitedata.asmx?WSDL<
View Complete Post