You must Sign In to post a response.
  • Category: ASP.NET

    How to develop themes and skin files in asp.net?

    Hello,
    I'm using the asp.net and c#.net fro webapplication.
    I want to implement the themes and skin and i have to apply.
    I'm aware of this concept.
    so can body help me how to create the themes and skins and how to apply to webpages.



    Thanks in advance,
    Jay
  • #345568
    Follow the below steps to set background color of a textbox and a button control using Themes and Skins:

    1. Create a Theme using "Add Asp.Net Folder".
    2. Create a Skin file and copy the below code.

    <asp:TextBox runat="server" BackColor="Silver"></asp:TextBox>
    <asp:Button runat="server" Text="Button" BackColor="Silver" />

    3. Create an aspx page with a textbox and button control

    <%@ Page Language="C#" Theme="Theme1" AutoEventWireup="true" CodeFile="Skin.aspx.cs" Inherits="Skin" %>

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

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
    <title>Untitled Page</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <asp:TextBox ID="TextBox1" runat="server" ></asp:TextBox>
    <asp:Button ID="Button1" runat="server" Text="Button" /></div>
    </form>
    </body>
    </html>

    As above set the Theme attribute in Page directive.


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.