ASP.NET datalist--add bold to one field and do not display empty fields

I have an asp classic web site that I am now recreating in ASP.Net 4.6 using Visual Studio 2013 and am having problems with what should be a simple datalist.  I need to make the first field bold and I also do not want to display database fields that are empty.  I tried using literal controls but when I got the bold to work, the code was displayed instead of the data.   I would appreciate any advice. I am attaching the code below. --Shari

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="newsawards.aspx.cs" Inherits="LRDCNew.WebForm1" %>

<!DOCTYPE html>
<asp:literal runat="server"></asp:literal>
<html xmlns="">
<head runat="server">
    <form id="form1" runat="server">
        <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSourceNewsAwards" RepeatLayout="Flow" ShowFooter="False" ShowHeader="False">
                <asp:Label ID="aw_descriptionLabel" runat="server" Text=<b>'<%# Eval("aw_description") %>'</b> />
                <br />

                <asp:Label ID="aw_display_dateLabel" runat="server" Text='<%# Eval("aw_display_date") %>' />
                <br />
                <asp:Label ID="aw_sourceLabel" runat="server" Text='<%# Eval("aw_source") %>' />
                <br />
                <asp:Label ID="aw_urlLabel" runat="server" Text='<%# Eval("aw_url") %>' />
                <br />
                <asp:Label ID="aw_pdfLabel" runat="server" Text='<%# Eval("aw_pdf") %>' />
                <br />
<br />
        <asp:SqlDataSource ID="SqlDataSourceNewsAwards" runat="server" ConnectionString="<%$ ConnectionStrings:lrdc_dbConnectionString2 %>" SelectCommand="SELECT [aw_description], [aw_display_date], [aw_source], [aw_url], [aw_pdf] FROM [AWARDS] ORDER BY [aw_event_date]" OnSelecting="SqlDataSourceNewsAwards_Selecting"></asp:SqlDataSource>

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kyle AbrahamsSenior .Net DeveloperCommented:
If the fields are empty nothing should be displayed.  You can also filter it out in your query.

For the bold use the format below:
  <asp:Label ID="aw_descriptionLabel" runat="server" Text='<%# "<b>" + Eval("aw_description")+ "</b>" %>' />

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lrdchelpAuthor Commented:
Thank you!  That answers both questions.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.