There are two links on my website on the same page
Staff Profile
Student Profile
When we click on staff profile, It display the detail of all the staff members with their name, qualification. Name is hyperlinked. When I click on the detail of any staff member
name, it display all the information of that staff member – image , name, qualification, interest, activities
On first page, where name and qualification of all the staff members is displayed, I want to display image also.
C# code to access these properties
var staffProfiles =
from staff in XrmContext.new_peopleprofileSet
where staff.new_name.Contains("Staff")
select new
{
Name = staff.new_PeoplesName,
Iwi = staff.new_Iwi,
Position = staff.new_PositionandResponsibilities,
URL = "~/aboutus/staff?profileID=" + staff.Id.ToString(),
};
aspx page to display details of all staff members
<asp:Repeater
ID="staffProfilesRepeater"
runat="server">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<div>
<a
class="searchResultItemTitle"
href='<%# Eval("URL")
%>'><%# Eval("Name")
%></a>
<br
/>
<p><span
class="font_bold">Iwi: </span><%#
Eval("Iwi") %></p>
<p><span
class="font_bold">Position and Responsibilities: </span><%#
Eval("Position")
%></p>
<br
/>
</div>
</ItemTemplate>
<FooterTemplate>
</FooterTemplate>
</asp:Repeater>
As we click on the name of a staff and image get displayed, I want to display image in listing also.
Image is uploaded in web files in CRM
raj