hmoser-bostwicklaboratories
-
10/21/2009 1:02:32 PM
Displaying Data from a different site using the same database.
I am using the repeater to display the staff on our website, we have multiple websites with the same staff and instead of having a document for each staff member on each website I would like to use the 'site name' option in the repeater. When I use this option all of the data is called except for the staff photo. and when I click on the name to diplay the full bio I get a message that the page cannot be displayed. I am using the following transformation:
<a href="<%# GetDocumentUrl() %>"><%# IfEmpty(Eval("StaffPhoto"), "", "<img src=\"" + GetFileUrl("StaffPhoto") + "?height=110\" alt=\"Photo\" />") %><%# Eval("DocumentHeader") %></span></a><%# MyFunctions.TrimText(Eval("StaffBio"), 200) %><a class="OvalButton" href="<%# GetDocumentUrl() %>">Read More</a>
FYi: the websites use the same database, but each website is running in its own directory.
|