M
Miguel Dias Moura
Hello,
I want to display 6 database fields in this way:
{name}
{address}
Phone: {phone} | Fax: {fax}
URL: {url} | Email: {email}
Of course if {phone} field is empty I need to hide "Phone: {phone} | "
I came up with something like this (to hide the address line):
<table runat="server" visible='<%# users.FieldValue("address",
Container) <> "" %>'>
<tr>
<td><%# users.FieldValue("address", Container) %></td>
</tr>
</table>
It works but I am not convinced until now I wasn't able to display
everything as I want.
I also applied the same strategy to <spam> and <p> tags.
It's easier to set everything as I want but I am even less convinced.
Can I have some opinion about this?
I really would appreciate some help.
I am working in ASP.NET/VB.
Thanks,
Miguel
I want to display 6 database fields in this way:
{name}
{address}
Phone: {phone} | Fax: {fax}
URL: {url} | Email: {email}
Of course if {phone} field is empty I need to hide "Phone: {phone} | "
I came up with something like this (to hide the address line):
<table runat="server" visible='<%# users.FieldValue("address",
Container) <> "" %>'>
<tr>
<td><%# users.FieldValue("address", Container) %></td>
</tr>
</table>
It works but I am not convinced until now I wasn't able to display
everything as I want.
I also applied the same strategy to <spam> and <p> tags.
It's easier to set everything as I want but I am even less convinced.
Can I have some opinion about this?
I really would appreciate some help.
I am working in ASP.NET/VB.
Thanks,
Miguel