Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...adding style to static text??adding style to static text??
Previous
 
Next
New Post
8/3/2009 9:47 AM
 

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

 

 

 
New Post
8/4/2009 9:59 AM
 

What are you seeing differently using the code you have posted above?


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...adding style to static text??adding style to static text??


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out