Here's the aspx code:
<asp:DataList ID="dltAllStaff" runat="server" DataKeyField="staffID"
DataSourceID="sqlAllStaff">
<ItemTemplate>
<asp:Label ID="lblFullName" runat="server" Text='<%# getFullName() %>' />
</ItemTemplate>
</asp:DataList>
And here's the code behind:
protected string getFullName()
{
StringBuilder strFullName = new StringBuilder();
if (!String.IsNullOrEmpty(Eval("additionalInfo").ToString()))
{
strFullName.Append("<div class=\"staffFullNameHeader\">");
strFullName.Append("<h2><a class=\"staffFullName\" title=\"Click here to email this person directly.\" href=\"contactUs.aspx?staff=" + Eval("email") + "\">" + Eval("fstName") + " " + Eval("lstName") + "</a></h2>");
strFullName.Append("<a class=\"staffT ...
Go to the complete details ...