I had my webhost provider, 3Essentials.com, upgrade my DNN Installation from 5.0 to 5.6.1. Now my website doesn't recognize SOME of my CSS formatting.
I have several simple modules that simply display SQL data in a standard asp:GridView. I have my CSS file for formatting these grids located in httpdocs\_assets\css\grid.css.
Since the upgrade to 5.6, the grids show data OK, but, with what appears to be no formatting. Why aren't my "class" declarations working anymore? I've pasted part of the ASCX file from just one of the modules. Why isn't <div class="grid"> recognized anymore?
Thank You.
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RptEquipment.ascx.cs"
Inherits="RptEquipment" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<div class="grid">
<asp:UpdatePanel ID="udpEquipment" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div align="right">
<asp:Label ID="lblContactCode" runat="server" Text="Contact Code:" Font-Size="Small"></asp:Label>
<asp:DropDownList ID="ddlContactCode" runat="server" AutoPostBack="True"
OnDataBound="ddlContactCode_DataBound" OnSelectedIndexChanged="ddlContactCode_SelectedIndexChanged" >
</asp:DropDownList>
<asp:Label ID="lblUPSINumber" runat="server" Text="UPSI Number:" Font-Size="Small"></asp:Label>
<asp:DropDownList ID="ddlUpsino" runat="server" AutoPostBack="True" DataSourceID="SqlUpsino"
DataTextField="upsino" DataValueField="upsino" OnDataBound="ddlUpsino_DataBound"
OnSelectedIndexChanged="ddlUpsino_SelectedIndexChanged" >
</asp:DropDownList>
<asp:Button ID="btnReset" CssClass="button" runat="server" Text="Reset" OnClick="btnReset_Click" />
<br /><br />
<asp:Label ID="lblSubName" runat="server" Text="Sub Name:" Font-Size="Small"></asp:Label>
<asp:TextBox ID="txtSubName" runat="server" Wrap="False" ></asp:TextBox>
<asp:Label ID="lblCoEquipNo" runat="server" Text="Co. Equip. No.:" Font-Size="Small"></asp:Label>
<asp:TextBox ID="txtCoEquipNo" runat="server" Wrap="False"></asp:TextBox>
<asp:Label ID="lblSerialNo" runat="server" Text="Serial No.:" Font-Size="Small"></asp:Label>
<asp:TextBox ID="txtSerialNo" runat="server" Wrap="False"></asp:TextBox>
<asp:Button ID="btnApply" CssClass="button" runat="server" Text="Apply" OnClick="btnApply_Click" Width="54" />
<br /><br />
<div align="center">
<asp:Label ID="lblFilterBy" runat="server" Text="Filter list by one, two, or all three of the criteria above." Font-Bold="True" ForeColor="#3333CC" BackColor="#CCCCCC" BorderStyle="Outset" BorderWidth="2" BorderColor="Red" Width="375"></asp:Label>
</div>
</div><br />
<asp:GridView ID="gvEquipment" runat="server"
DataSourceID="SqlEquipmentWithContactCode" OnRowDataBound="gvEquipment_RowDataBound"
AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" CssClass="datatable"
CellPadding="0" BorderWidth="0px" GridLines="None" EnableModelValidation="True"
Caption="Equipment List" PageSize="15">
<PagerStyle CssClass="pager-row" />
<RowStyle CssClass="row" />
<Columns>
<asp:TemplateField HeaderText="Upsino" SortExpression="Upsino">
<ItemTemplate>
<asp:HyperLink ID="hlUpsino" runat="server" NavigateUrl='<%# getlink(Eval("Upsino")) %>'>
<asp:Label ID="lblUpsino" runat="server" Text='<%# Bind("Upsino") %>'></asp:Label>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Sub Name" HeaderText="Sub Name" ReadOnly="true" SortExpression="Sub Name" />
<asp:BoundField DataField="Company Equip No" HeaderText="Company Equip No" ReadOnly="true" SortExpression="Company Equip No" />
<asp:BoundField DataField="Manufacturer" HeaderText="Manufacturer" ReadOnly="true" SortExpression="Manufacturer" />
<asp:BoundField DataField="Serial No" HeaderText="Serial No" ReadOnly="true" SortExpression="Serial no" />
<asp:BoundField DataField="Gallons" HeaderText="Gallons" ReadOnly="true" SortExpression="Gallons" />
<asp:BoundField DataField="Fluid Type" HeaderText="Fluid Type" ReadOnly="true" SortExpression="Fluid Type" />
<asp:BoundField DataField="Mfg Date" HeaderText="Mfg Date" ReadOnly="true" SortExpression="Mfg Date" />
<asp:BoundField DataField="Equipment Type" HeaderText="Equipment Type" ReadOnly="true" SortExpression="Equipment Type" />
<asp:BoundField DataField="High Voltage" HeaderText="High Voltage" ReadOnly="true" SortExpression="High Voltage" />
<asp:BoundField DataField="Low Voltage" HeaderText="Low Voltage" ReadOnly="true" SortExpression="Low Voltage" />
<asp:BoundField DataField="KVA Rating" HeaderText="KVA Rating" ReadOnly="true" SortExpression="KVA Rating" />
</Columns>
<PagerSettings NextPageText=">" PreviousPageText="<" Mode="NumericFirstLast" PageButtonCount="7"
FirstPageText="«" LastPageText="»" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</div>