Hi rajeesh,
Refer below sample.
HTML
<style type="text/css">
.bgImage
{
background-image: url(AddCard.png);
background-repeat: repeat;
}
</style>
<div>
CardNo :
<asp:TextBox runat="server" ID="txtCardNo" />
<br />
<br />
<asp:Button Text="Display" runat="server" OnClick="display" />
<br />
<br />
<asp:Label ID="lblMessage" runat="server" Height="150px" Width="200px" />
</div>
Code
C#
protected void display(object sender, EventArgs e)
{
lblMessage.Text = "Card No is : " + txtCardNo.Text;
lblMessage.CssClass = "bgImage";
}
VB.Net
Protected Sub display(ByVal sender As Object, ByVal e As EventArgs)
lblMessage.Text = "Card No is : " & txtCardNo.Text
lblMessage.CssClass = "bgImage"
End Sub
Screenshot