Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...module.css doesnmodule.css doesn't work on dnn portal
Previous
 
Next
New Post
11/11/2007 5:00 AM
 

hi,

i've got problem with my module css file. it's in module folder and it's called 'module.css'.

that's my ascx source file

<%@ Control language="C#" Inherits="YourCompany.Modules.TabelaController.ViewTabelaController" CodeFile="ViewTabelaController.ascx.cs" AutoEventWireup="true"%>
<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
<link href="module.css" rel="Stylesheet" type="text/css"  runat="server"  />
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" CssClass="whole-grid-show"
    AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="SqlDataSource1">
    <Columns>
        <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
            SortExpression="id" />
        <asp:BoundField DataField="idBuchNr" HeaderText="idBuchNr" SortExpression="idBuchNr" />
        <asp:BoundField DataField="vorname" HeaderText="vorname" SortExpression="vorname" />
        <asp:BoundField DataField="name" HeaderText="name" SortExpression="name" />
        <asp:BoundField DataField="pers" HeaderText="pers" SortExpression="pers" />
        <asp:BoundField DataField="mietobjekt" HeaderText="mietobjekt" SortExpression="mietobjekt" />
        <asp:BoundField DataField="typ" HeaderText="typ" SortExpression="typ" />
        <asp:BoundField DataField="anreise" HeaderText="anreise" SortExpression="anreise" />
        <asp:BoundField DataField="abreise" HeaderText="abreise" SortExpression="abreise" />
        <asp:BoundField DataField="vm" HeaderText="vm" SortExpression="vm" />
        <asp:BoundField DataField="vermnr" HeaderText="vermnr" SortExpression="vermnr" />
        <asp:BoundField DataField="hausnr" HeaderText="hausnr" SortExpression="hausnr" />
    </Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:testConnectionString %>"
    SelectCommand="SELECT * FROM [vBooking_tblRoominglist]"></asp:SqlDataSource>

 


that's my module.css file

body {
}

.whole-grid-show
{
background-color:White;
font-weight:bold;
text-align:center;
}

in design mode in visual studio everything is ok, it works. when i load module to my dnn portal, it completely doesn't work. i read documenatation, many forums and few blogs and can't figure out what is wrong in my code. can anbody hep me with that?

 
New Post
11/11/2007 4:50 PM
 

If you have Firefox with the Web Developer Extension installed (and if you don't then you must!) Open the page and choose the Edit CSS option in the  extension. Then, in the panel that opens, check if the module.css for that module has actually loaded.

I've never created a module so I'm only speculating, but maybe you have to use <%=ModulePath%> or something to point to the file?

Rob

 
New Post
11/11/2007 5:24 PM
 

It should work...but you don need to have the line

<link href="module.css" rel="Stylesheet" type="text/css"  runat="server"  />

Mybee the line do some confusing , try remove the line.

Jan

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...module.css doesnmodule.css doesn't work on dnn portal


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out