I am tinkering with Themes for the first time.
I am designing in Visual Web Developer Express Edition 2005.
I am running this on Vista Home Premium.
I am deploying on the same box which is running IIS7 and has the following options installed:
--IIS 6 Management Compatibility (All options checked)
--IIS Management Console
--.NET Extensibility
--ASP
--ASP.Net
--ISAPI Extensions
--ISAPI Filters
--Default Document
--Directory Browsing
--HTTP Errors
--Static Content
--HTTP Logging
--Request Monitor
--Static Content Compression
--IP Security
--Request Filtering
--------------
I have entered the following in my web.config file:
<system.web>
<pages styleSheetTheme="DW6" />
--------------
I have the theme defined in the file tree as:
App_Themes \ DW6
--------------
I have a "GridView.skin" file which looks like this:
<%--
Default skin template. The following skins are provided as examples only.
1. Named control skin. The SkinId should be uniquely defined because
duplicate SkinId's per control type are not allowed in the same theme.
<asp:GridView runat="server" SkinId="gridviewSkin" BackColor="White" >
<AlternatingRowStyle BackColor="Blue" />
</asp:GridView>
2. Default skin. The SkinId is not defined. Only one default
control skin per control type is allowed in the same theme.
<asp:Image runat="server" ImageUrl="~/images/image1.jpg" />
--%>
<asp:GridView runat="server" CellPadding="5" GridLines="Horizontal">
<PagerStyle BackColor="#C0C0FF" />
<SelectedRowStyle BackColor="#C0FFC0" />
<HeaderStyle BackColor="#C0C0FF" />
<AlternatingRowStyle BackColor="#FFE0C0" />
</asp:GridView>
--------------
Relevant page code from the page with a gridview:
<%@ Page Language="VB" MasterPageFile="~/MasterPages/dw6.master" AutoEventWireup="false"
CodeFile="Default.aspx.vb" Inherits="_Default" Title="Conditions" %>
<asp:Content ID="contentMain" ContentPlaceHolderID="cphMain" runat="Server">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Condition_ID" DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="Condition_ID" HeaderText="Condition_ID" InsertVisible="False"
ReadOnly="True" SortExpression="Condition_ID" />
<asp:CheckBoxField DataField="Type" HeaderText="Type" SortExpression="Type" />
<asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
</Columns>
</asp:GridView>
</asp:Content>
--------------
The VDW2005 Designer renders the control correctly (e.g., skin file applied to control), however when I run the page from VDW2005 (localhost:randomport/site) or when I run the page from the deployment server, no formatting whatsoever is applied.
Does anyone have an idea as to what I am doing wrong?
I have googled this extensively and cannot find anything even remotely relevant.
Any assistance to point me in the right direction (or solve it outright) will be greatly appreciated.
Hope this helps,
Pete
I am designing in Visual Web Developer Express Edition 2005.
I am running this on Vista Home Premium.
I am deploying on the same box which is running IIS7 and has the following options installed:
--IIS 6 Management Compatibility (All options checked)
--IIS Management Console
--.NET Extensibility
--ASP
--ASP.Net
--ISAPI Extensions
--ISAPI Filters
--Default Document
--Directory Browsing
--HTTP Errors
--Static Content
--HTTP Logging
--Request Monitor
--Static Content Compression
--IP Security
--Request Filtering
--------------
I have entered the following in my web.config file:
<system.web>
<pages styleSheetTheme="DW6" />
--------------
I have the theme defined in the file tree as:
App_Themes \ DW6
--------------
I have a "GridView.skin" file which looks like this:
<%--
Default skin template. The following skins are provided as examples only.
1. Named control skin. The SkinId should be uniquely defined because
duplicate SkinId's per control type are not allowed in the same theme.
<asp:GridView runat="server" SkinId="gridviewSkin" BackColor="White" >
<AlternatingRowStyle BackColor="Blue" />
</asp:GridView>
2. Default skin. The SkinId is not defined. Only one default
control skin per control type is allowed in the same theme.
<asp:Image runat="server" ImageUrl="~/images/image1.jpg" />
--%>
<asp:GridView runat="server" CellPadding="5" GridLines="Horizontal">
<PagerStyle BackColor="#C0C0FF" />
<SelectedRowStyle BackColor="#C0FFC0" />
<HeaderStyle BackColor="#C0C0FF" />
<AlternatingRowStyle BackColor="#FFE0C0" />
</asp:GridView>
--------------
Relevant page code from the page with a gridview:
<%@ Page Language="VB" MasterPageFile="~/MasterPages/dw6.master" AutoEventWireup="false"
CodeFile="Default.aspx.vb" Inherits="_Default" Title="Conditions" %>
<asp:Content ID="contentMain" ContentPlaceHolderID="cphMain" runat="Server">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Condition_ID" DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="Condition_ID" HeaderText="Condition_ID" InsertVisible="False"
ReadOnly="True" SortExpression="Condition_ID" />
<asp:CheckBoxField DataField="Type" HeaderText="Type" SortExpression="Type" />
<asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
</Columns>
</asp:GridView>
</asp:Content>
--------------
The VDW2005 Designer renders the control correctly (e.g., skin file applied to control), however when I run the page from VDW2005 (localhost:randomport/site) or when I run the page from the deployment server, no formatting whatsoever is applied.
Does anyone have an idea as to what I am doing wrong?
I have googled this extensively and cannot find anything even remotely relevant.
Any assistance to point me in the right direction (or solve it outright) will be greatly appreciated.
Hope this helps,
Pete