Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

DataList Control Formatting Question

 
 
Jack Sprat
Guest
Posts: n/a
 
      08-05-2004
Hi

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.

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


 
Reply With Quote
 
 
 
Reply

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



Advertisments