Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > DataList Control Formatting Question

Thread Tools

DataList Control Formatting Question

Jack Sprat
Posts: n/a

I have a Datalist control and am using it to display some data (snippet
below). Sometimes there is no record for, say, "Mobile". In this case i do
not want to display any of the HTML associated with "Mobile". How can i
achieve this?

Thanks in advance.

<td class="examinerhead">Telephone:</td>
<td class="examinervalue"><%# container.dataitem("Telephone") %></td>
<td class="examinerhead">Mobile:</td>
<td class="examinervalue"><%# container.dataitem("Mobile") %></td>
<td class="examinerhead">Fax:</td>
<td class="examinervalue"><%# container.dataitem("fax") %></td>
<td class="examinerhead">Email:</td>
<td class="examinervalue"><a href="mailto:<%#
container.dataitem("Email") %>"><%# container.dataitem("Email") %></a></td>

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a datalist control - Item_DataBound for a datalist in a datalist Nevyn Twyll ASP .Net 8 09-09-2004 10:13 PM
DataList Control Formatting Question Jack Sprat ASP .Net Web Controls 0 08-05-2004 03:20 PM
Need formatting options menu for formatting hard drive Mark T. Computer Support 3 11-24-2003 11:50 PM
Complex DataList formatting with a <table> Leo Duran ASP .Net 2 10-31-2003 08:12 AM
Datalist Formatting Strangeness Joe ASP .Net 3 10-18-2003 04:13 AM