I am using a listview in asp.net and inside this listview I have a listbox that gets filled with data using my query. Some of the values that are in the listbox are empty. Is there a way to get the data that is empty and change it to "(Blank)"?
ASP.NET
<asp:ListBox ID="ListBox1" runat="server" DataSourceID="FormTitleDataSource"
DataTextField="FormTitle" DataValueField="FormID"
SelectedValue='<%# Bind("FormID") %>' AppendDataBoundItems="true">
<asp:SqlDataSource ID="FormTitleDataSource" runat="server"
ConnectionString="<%$ ConnectionStrings:ORHP_Dev03182014ConnectionString %>"
SelectCommand="SELECT DISTINCT FormTitle, FormID FROM Core.Form_Lkup ORDER BY FormTitle">
</asp:SqlDataSource>
select NVL(FormTitle, '(Blank)'). Not sure if there's an equivalent syntax for SQL Server (NVL stands for No Value, it's a function that replaces null with a specified value.)