Farily new to asp.net and wondered if anyone knows how I can turn the html text within the literal text="" to proper html text that is styled exactly like I have done it.
I have removed the "" marks around the style attribute to get the page to work but the font doesn't appear at all now??
Code is below:
Dim literal As New LiteralSelect Case idCase "438025219"
'Business Communications UK
literal.Text =
"<div style=font-family:arial,helvetica; font-size:16px; color:#605f4c; font-weight:bold; border-bottom:1px solid #f26522; width:220px;>Business Communications</div><div style=font-family:arial,helvetica; font-size:12px; color:#605f4c; margin-bottom:0px; margin-top: 0px;>Get reliable email, messaging and calendaring without the hardware costs!</div><div style=font-family:arial,helvetica; font-size:12px; color:#605f4c; margin-bottom:0px;><li>Hosted Exchange 2007</li><li>Hosted Live Communications Server</li></div><div style=font-family:arial,helvetica; font-size:14px; font-weight:bold; color:#f26522; padding-right:30px;>Call Proximitum today for your Free Trial!</div>"
Case "438025220"
'IT Infrastructure UK
literal.Text =
"<div style=font-family:arial,helvetica; font-size:16px; color:#605f4c; font-weight:bold; border-bottom:1px solid #f26522; width:220px;>Business Infrastructure</div><div style=font-family:arial,helvetica; font-size:12px; color:#605f4c; margin-bottom:0px; margin-top: 0px;>Enjoy enterprise class data centre facilities at small business prices!</div><div style=font-family:arial,helvetica; font-size:12px; color:#605f4c; margin-bottom:0px;><li>Secure MPLS Connectivity</li><li>Data Centre Hosting</li></div><div style=font-family:arial,helvetica; font-size:14px; font-weight:bold; color:#f26522; padding-right:30px;>Call Proximitum today to reduce the cost of managing your IT infrastructure!</div>"
Case "438025221"
'UK Hosted Applications
literal.Text =
"<div style=font-family:arial,helvetica; font-size:16px; color:#605f4c; font-weight:bold; border-bottom:1px solid #f26522; width:220px;>Business Applications</div><div style=font-family:arial,helvetica; font-size:12px; color:#605f4c; margin-bottom:0px; margin-top: 0px;>Enterprise class business applications without the expense and worry!</div><div style=font-family:arial,helvetica; font-size:12px; color:#605f4c; margin-bottom:0px;><li>Managed Desktop</li><li>Hosted Microsoft Dynamics CRM & ERP</li><li>Hosted Microsoft SharePoint WSS & MOSS</li></div><div style=font-family:arial,helvetica; font-size:14px; font-weight:bold; color:#f26522; padding-right:30px;>Call Proximitum today for your Free Trial!</div>"
Case "438025222"
'Disaster Recovery UK
literal.Text =
"<div style=font-family:arial,helvetica; font-size:16px; color:#605f4c; font-weight:bold; border-bottom:1px solid #f26522; width:220px;>Business Disaster Recovery</div><div style=font-family:arial,helvetica; font-size:12px; color:#605f4c; margin-bottom:0px; margin-top: 0px;>Protect your business data and ensure continued success of your business in the event of a system failure!</div><div style=font-family:arial,helvetica; font-size:12px; color:#605f4c; margin-bottom:0px;><li>Disaster Recovery Planning</li><li>Backup Systems</li></div><div style=font-family:arial,helvetica; font-size:14px; font-weight:bold; color:#f26522; padding-right:30px;>Call Proximitum today for a Free Assessment!</div>"
Case "438025223"
'Professional ITC Services
literal.Text =
"<div style=font-family:arial,helvetica; font-size:16px; color:#605f4c; font-weight:bold; border-bottom:1px solid #f26522; width:220px;>Professional Services</div><div style=font-family:arial,helvetica; font-size:12px; color:#605f4c; margin-bottom:0px; margin-top: 0px;>Get the most from your IT!</div><div style=font-family:arial,helvetica; font-size:12px; color:#605f4c; margin-bottom:0px;><li>Consultancy</li><li>Support SLAs</li> <li>ITIL Best Practice Guidelines</li></div><div style=font-family:arial,helvetica; font-size:14px; font-weight:bold; color:#f26522; padding-right:30px;>Call Proximitum today to learn how to optimise your IT infrastructure and reduce costs!</div>"
End Select
'pnlcategory.Controls.Add(literal)
End Sub