M
Morris Neuman
Hi,
I have a formview bound to an AccessDataSource.
AccessDataSource is defined as:
<asp:AccessDataSource ID="AccessDataSource1"
runat="server" DataFile="C:\Program Files\CallMaster\Data\CallMaster.mdb"
SelectCommand="SELECT [CompanyName], [Message],
[SalesContactPhone], [SalesContactEmail], [SupportContactPhone],
[SupportContactEmail], [CompanyWebsite] FROM
[Company]"></asp:AccessDataSource>
The formview is defined as:
<asp:FormView ID="FormView3" runat="server"
DataSourceID="AccessDataSource1">
<ItemTemplate>
Sales:<br />
<asp:Label ID="SalesContactPhoneLabel"
runat="server" Font-Bold="False" Font-Size="8pt"
Text='<%# Bind("SalesContactPhone")
%>'></asp:Label><br />
<asp:Label ID="SalesContactEmailLabel"
runat="server" Font-Bold="False" Font-Size="8pt"
Text='<%# Bind("SalesContactEmail")
%>'></asp:Label><br />
</ItemTemplate>
</asp:FormView>
If the formview field "SalesContactPhoneLabel" is null then I do not want to
display FormView3.
How can I do that?
Any help is appreciated.
I have a formview bound to an AccessDataSource.
AccessDataSource is defined as:
<asp:AccessDataSource ID="AccessDataSource1"
runat="server" DataFile="C:\Program Files\CallMaster\Data\CallMaster.mdb"
SelectCommand="SELECT [CompanyName], [Message],
[SalesContactPhone], [SalesContactEmail], [SupportContactPhone],
[SupportContactEmail], [CompanyWebsite] FROM
[Company]"></asp:AccessDataSource>
The formview is defined as:
<asp:FormView ID="FormView3" runat="server"
DataSourceID="AccessDataSource1">
<ItemTemplate>
Sales:<br />
<asp:Label ID="SalesContactPhoneLabel"
runat="server" Font-Bold="False" Font-Size="8pt"
Text='<%# Bind("SalesContactPhone")
%>'></asp:Label><br />
<asp:Label ID="SalesContactEmailLabel"
runat="server" Font-Bold="False" Font-Size="8pt"
Text='<%# Bind("SalesContactEmail")
%>'></asp:Label><br />
</ItemTemplate>
</asp:FormView>
If the formview field "SalesContactPhoneLabel" is null then I do not want to
display FormView3.
How can I do that?
Any help is appreciated.