---
title: "database text with html formatting, how to pull it into my asp.net page"  
description: "database text with html formatting, how to pull it into my asp.net page"  
author: "Anonymous User"  
published: 2014-08-26  
updated: 2014-08-26  
canonical: https://www.mindstick.com/forum/2138/database-text-with-html-formatting-how-to-pull-it-into-my-asp-dot-net-page  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# database text with html formatting, how to pull it into my asp.net page

I have [content](https://www.mindstick.com/articles/13019/get-the-best-content-marketing-pricing-packages-for-your-brand) that I want to [load](https://answers.mindstick.com/qa/33737/what-is-meant-by-average-load-time) dynamically, the [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) is it has some [html](https://www.mindstick.com/articles/1530/design-a-simple-stylish-calculator-using-html-css-and-javascript) formatting in it. What [control](https://www.mindstick.com/blog/197/asp-dot-net-repeater-control) should i pull the [text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions) into, is there a way to pull the text into a div or a [label](https://www.mindstick.com/articles/12835/print-label-tracking-how-do-these-features-make-auspost-woocommerce-plugin-better), along with the formatting?

## Replies

### Reply by Sumit Kesarwani

Hi Chintoo, \

You can use an asp:Literal:

Code behind:

myLiteral.Text = HtmlDecode(GetTextFromDB())


---

Original Source: https://www.mindstick.com/forum/2138/database-text-with-html-formatting-how-to-pull-it-into-my-asp-dot-net-page

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
