Breaking News

Monday, 16 February 2015

How to Change The Colors Dynamically

Button : It is used for to submit the values.


for change the colors we are using one type of namespace i.e System.Drawing.color and we are using one property i.e forecolor.

Example :

Design: Apply color using Asp.net with C#.net Language

<form id="form1" runat="server">
<div>

<h1>
<asp:Label ID="Label1" runat="server" Text="GK developmentS"></asp:Label>
</h1>

</div>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click1" Text="Red" />
&nbsp;<asp:Button ID="Button2" runat="server" onclick="Button2_Click1"
Text="Green" />
&nbsp;<asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="Blue" />
&nbsp;<asp:Button ID="Button4" runat="server" onclick="Button4_Click"
Text="Yellow" />
</form>

No comments:

Post a Comment

Designed By Blogger Templates