Categories
Asp, Asp.net

How To Show Image In Label

How To Show Image In Label

In this post we will discuss How To Show Image In Label.

Design View:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>How To Show Image In Label</title>
<style type="text/css">
body
{
width:980px;
margin:0px auto;
text-align:center;
font-family:Calibri;
font-size:14px;
}
.cen
{
text-align:center;
margin-left:350px
}
</style>
</head>
<body>
    <form id="form1" runat="server">
<div style="text-align:center;width:980px">  
<h2 style="color:Navy">How To Show Image In Label</h2>  
<asp:Label ID="lblimg" runat="server" Text="<img src='http://hightechnology.in/wp-content/uploads/2012/09/hightechnology-logo-small.png' />"></asp:Label>
</div>  
<div style="margin-top:50px">
    All rights reserved by <a target="_blank" href="http://www.hightechnology.in">Hightechnology.in</a>
</div>
    </form>
</body>
</html>

2 replies on “How To Show Image In Label”

Comments are closed.