//RadioButtonSkinID.aspx
<%@ Page Language="C#" Theme="Red" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>How to use theme and skin id (SkinID) in RadioButton</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2 style="color:Green">RadioButton Example: SkinID</h2>
<asp:Label
ID="Label1"
runat="server"
Font-Bold="true"
ForeColor="DarkBlue"
Text="Choose Favorite Color?"
>
</asp:Label>
<br />
<asp:RadioButton
ID="RadioButton1"
runat="server"
Text="DarkSeaGreen"
GroupName="Colors"
SkinID="DarkBlue"
/>
<asp:RadioButton
ID="RadioButton2"
runat="server"
Text="DarkSlateBlue"
GroupName="Colors"
SkinID="DarkBlue"
/>
<br /><br />
<asp:Label
ID="Label2"
runat="server"
Font-Bold="true"
ForeColor="DarkRed"
Text="Choose Favorite Control?"
>
</asp:Label>
<br />
<asp:RadioButton
ID="RadioButton3"
runat="server"
Text="RadioButtonList"
GroupName="Controls"
SkinID="Crimson"
/>
<asp:RadioButton
ID="RadioButton4"
runat="server"
Text="ValidationSummary"
GroupName="Controls"
SkinID="Crimson"
/>
</div>
</form>
</body>
</html>
//Red.skin
<asp:RadioButton
SkinID="DarkBlue"
runat="server"
BackColor="DarkBlue"
Font-Size="X-Large"
Font-Italic="true"
Font-Underline="true"
ForeColor="AliceBlue"
/>
<asp:RadioButton
SkinID="Crimson"
runat="server"
BackColor="Crimson"
ForeColor="Snow"
Font-Size="Large"
BorderColor="DarkMagenta"
BorderWidth="2"
/>
No comments:
Post a Comment