What is Theme? Differentiate css and skin file. Give ASP.Net code to define theme and also give code to apply it in webpage

To define Theme you have to create first page theme and then you have to create
 skin file.

Steps for creating Page Themes 

1. In the Solution Explorer, right-click on your web site name and hover to
 Add ASP.NET then click Themes.
2. Now you will see an App_Themes folder.
3. Then create Newfolder of ThemeFolder in the App_Themes .

Steps for creating Skin file

4. Right-click on the ThemeFolder and click on Add New Item.
5. Then, you will see the Add New Item dialog box, you have to click on Skin File.
6. Type the name of the .skin file in the textbox.

Now you can add following .skin file code to created .skin file

ASP.Net code to define theme :

<asp:label runat="server" Width="100px" Height="30px" Font-Size="Large" 
Font-Bold="true" ForeColor="#666666" BackColor="#FFFFFF" 
BorderColor="#FFFFFF" />
<asp:button runat="server" ForeColor="#000000" BackColor="#000000" 
BorderColor="#FFFFFF" Font-Italic="true"/>

<!-- ASP.Net code to apply it in webpage. -->

<%@ Page Language="C#" Theme="ThemeFolder" CodeFile="Default.aspx.cs"
 Inherits="_Default" %>
<!DOCTYPE html>
<head runat="server">
<title>ASP.Net code to define theme and how to apply it in Web Page</title>
<font runat="server">
<asp:label runat="server" ID="lable1" Text="Download GTU Dot Net Technology 
Paper Solution"></asp:label>
<asp:button runat="server" Text="Download"></asp:button>

Related Posts Plugin for WordPress, Blogger...

Engineering material



Patel free software download

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP