Tuesday, 29 July 2014

How to use theme and skin in ASP.NET DropDownList

How to use theme and skin in ASP.NET DropDownList

  1. <%@ Page Language=“C#” Theme=“Red” %>

  2. <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

  3. <script runat=“server”>

  4. </script>

  5. <html xmlns=“http://www.w3.org/1999/xhtml”>
  6. <head id=“Head1″ runat=“server”>
  7.     <title>How to use theme and skin in DropDownList</title>
  8. </head>
  9. <body>
  10.     <form id=“form1″ runat=“server”>
  11.     <div>
  12.         <h2 style=“color:Green”>DropDownList: Using Theme</h2>
  13.         <asp:Label
  14.              ID=“Label1″
  15.              runat=“server”
  16.              Font-Bold=“true”
  17.              ForeColor=“DarkBlue”
  18.              Text=“Color List”
  19.              >
  20.         </asp:Label>
  21.         <asp:DropDownList
  22.              ID=“DropDownList1″
  23.              runat=“server”
  24.              >
  25.              <asp:ListItem>DarkGrey</asp:ListItem>
  26.              <asp:ListItem>DarkKhaki</asp:ListItem>
  27.              <asp:ListItem>DarkSlateGray</asp:ListItem>
  28.              <asp:ListItem>DarkTurquoise</asp:ListItem>
  29.              <asp:ListItem>DarkSlateBlue</asp:ListItem>
  30.         </asp:DropDownList>
  31.     </div>
  32.     </form>
  33. </body>
  34. </html>


No comments:

Post a Comment