Add icon to Text field in Label control
asp.net
Solution
You can't use the `text` property this way - the `Text` string will terminate with the `"` before the word `icon`.
However, any HTML markup will not be escaped, so you can use an `<img>` tag.
<asp:Label run="server"
Text="Please see the <img src='icon.gif' /> below" />
From MSDN (Label.Text):
The Text property can include HTML. If it does, the HTML will be passed unchanged to the browser, where is might be interpreted as markup and not as text.
Alternatively, you can add an `asp:image` to your markup, or place one between two `Label` controls.
Problem
I want to know if there is a way I can add an icon to asp.net Label's Text. So, something like ``` <asp:Label run="server" Text= "Please see the "icon" below /> ``` Thanks.