Posts

Showing posts from February, 2016

HOW TO PROGRAMMATICALLY SET THE FORECOLOR OF A LABEL IN ASP.NET C#

Image
Today in Engineer's World, we are discussingASP.NET&C#query faced by a developer in very easy way. Posted By-+Manish Kumar Gautam+LIVE VIAR+ASP.NET SOLUTIONS
Clickimagination hunt to see latest Blogs
Previous - HOW TO USE SYSTEM.DRAWING NAMESPACE IN ASP.NET C#
How to programmatically set the ForeColor of a Label in Asp.net C#
In this, blog we are showing you how to set the color of the label control dynamically. For this, we have created a web form where two numbers are added and their result is printed onto the label control.
Practical Implementation: -
Design code (dynamicSetLabelControlForeColor.aspx)
<%@PageLanguage="C#"AutoEventWireup="true"CodeFile="dynamicSetLabelControlForeColor.aspx.cs"Inherits="dynamicSetLabelControlForeColor"%>
<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html