RE: DNN4 - CSS Class url reference lost


I am new to DNN4 and are learning how to create custom module. I have previous experience programming in ASPNET 1.0 and VB.NET.

I am having a problem with the css class url definition.



background-image: url(~/images/messageIcon.png);

display: block;


The background image does not display at run time eventhough the file exists on disk in that location. The same definition works fine in an ASPNET application but not in DNN module. The image failed to display.

My question are:

With ASPNET2.0, files are organised into reserved directories App_Code, App_Data, App_Theme etc...

1. Where should all the CSS files and images files be in the DNN web site project?

2. With the above definition, how should I declare the url reference??

3. Can you also direct me to some documentation on where I could read about the DNN4 website directory structure?? eg: I found out that if I declared a public function and put it in the folder DotnetNuke.Library->Components->Shared. Then the function can be accessibled by all modules??

Thanks for your help,


7/21/2006 2:43:36 PM 4559 articles. 0 followers. Follow

0 Replies

Similar Articles

[PageSpeed] 23


Similar Artilces:

class reference not working in .NET 1.0 but ok in .NET 2
Hello,I'm not sure if I'm doing something wrong, but hopefully someone can help me figure it out.I created a very simple class library project, compiled it (no problems here). I then added a reference to it from the website project. Visual Studio sees it and I can use the class in my website project. When I try viewing the website project in the browser, I get the "are you missing a using directive or an assembly reference?" error. I've placed the DLL file in the bin folder off the webroot. The weird thing is that when I enable .NET 2.0 for the site, it runs fine and do...

RE: Take back your modules! (was: Re: Give up your modules!)
------_=_NextPart_001_01C6D289.89AFC74E Content-Type: text/plain > On Sep 7, 2006, at 9:08 AM, Mark Stosberg wrote: > > > I say: If you are care about a module's maintenance, start > acting like > > you own it, being considering that others, especially the current > > maintainer, may feel the same way. > > Nice. Worthy of a post so others can see it. Maybe > perlmonks too. I heartily concur.... Yves ------_=_NextPart_001_01C6D289.89AFC74E Content-Type: text/html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML ...

To prevent problems with 3rd party software referencing core DNN assemblies, please change the references for DotNetNuke.WebControls and DotNetNuke.WebUtility to be project references rather than file. This way, all DNN assemblies reference the same version of DotNetNuke.WebControls and DotNetNuke.WebUtility. Thanks Jim P.s. I can provide the entire file, if necessary. Otherwise, I have attached the diff, for DotNetNuke.vbproj, to make this change: 113,114c113,114 < AssemblyName = "DotNetNuke.WebControls" < HintP...

Re: .NET class browser
Dear all, I have installed MS visual studio already and where can I find a resource that lists all the classes that I may use in development using .NET technology, like the API of java? Regards, Joe You may need set up "quickstart" tutorial and you can find .net class viewer from its samples.This posting is provided "AS IS" with no warranties, and confers no rights. How to set up "quickstart" tutorial? Can you give more information. I am new to, sometimes I just don't know where to find the class I need. I feel the java API is very convenient to...

Re:NET ssh module
------=_Part_218524_25152261.1219757728889 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable No, if you can't connect to internet, you couldn't install Perl modules on = the host like your way. You may try to download that module (and its dependency) from CPAN and inst= all it by hand. --Jeff Cr=C3=A9ez votre adresse =C3=A9lectronique 1 Go d'espace de stockage, anti-spam et anti-virus int=C3=A9gr=C3=A9s. ------=_Part_218524_25152261.1219757728889-- ...

Re: Net::FTP module Complete module list. I may be wrong (relative newbie) but I thought Net-FTP was part of the perl-5.6.1 package... If you have a Windoze system, you can use 'ppm' at the command line. Then at 'ppm> ' you can 'search Net' to see what's available or 'query' to see what you've got. -J Sofia ...

re-elect the class dotnetnuke ??
It's possible to re-elect the class dotnetnuke while keeping the effectiveness of the project?...

Friendly URLs and getting module reference
First post.I'm just starting out in DotNetNuke module development and came across a problem I couldn't solve. We are trying to replicate this site in Dotnetnuke. I've been working on the "Feature Product" module first to see if it can be done. The trouble I can see is linking the featured "Product" through to a product page. The product page I would make as another module but since dotnetnuke uses TabIDs for each page, how would you get a reference using freindly URLs (or not) to the tab with the "Product" mod...

Hi Guys: I am still a programming newbie and wondering what is the benefits using Modules instead of Classes ? Both of them sound similar, and which one is better ? Thankx QT   From the documentation: "Modules are a reference type similar to classes, but with some important distinctions. The members of a module are implicitly Shared and scoped to the declaration space of the standard module's containing namespace, rather than just to the module itself. Unlike classes, modules can never be instantiated, do not support inheritance, and cannot implement interfaces. A module ...

URL Re-writing through HTTP Module
I am using http module to re-write the url like: http:\\localhost\urldemo\admin\default.aspx to http:\\localhost\urldemo\admin\de. but when i was running it through the .NET 2.0 IDE it is ok. And while i am running it after publising it is not showing the pages other than default page. Is any IIS setting to do it. Some body help me. Thanx in advance.Ashwini Tripathi Hey mate,I am not 100% sure but it may be that your are trying extensionless rewriting. Are you using IIS6? if so you would need to do this using an ISAPI filter, using IIS7 this would work fine. In this case try setup yo...

Re: Re-inventing wheels (WAS re: Required Fields Module)
> use CGI ":all"; > @values = param('foo'); > >If you're using the object interface, you've read the wrong book. >Even Lincoln himself doesn't use that for any examples I've seen him >teach in seminars. "perldoc CGI" is written that way mostly from >legacy, not optimization. Hmmm. Ok. That would shoot down that complaint. I think the only other one I had regarding the param() sort of interface was the fact that I had to assign the value of a param to an interim value (is that right?). So instead of: ...

Re: Re-inventing wheels (WAS re: Required Fields Module)
> isn't the only solution to creating dynamic web pages with Perl. >Text::Template is another alternative, as are embedded Perl >implementations like Apache::ASP, Mason, or even PerlScript (for IIS). None of which is crossplatform (Windows / Mac / Linux) or installable by a user with normal access on a webhost. -- ICQ: 2927491 / AOL: akaMorbus Yahoo: morbus_iff / Jabber: / ...

Re: Re: Net::ftp
b3IgY29uc2lkZXIgdG8gdXNlIHJzeW5jIHRvb2wsIHRoYXQncyBzaW1wbGUgYW5kIGVmZmVjdGl2 ZSBlbm91Z2guDQoNCg0KLS0tLS0gT3JpZ2luYWwgTWVzc2FnZSAtLS0tLQ0KRnJvbTogRGVybW90 IA0KVG86IGR2ZEBkdmRtYWduZXQuY29tDQpTdWJqZWN0OiBSZTogTmV0OjpmdHANCkRhdGU6IDIw MDgtMTEtMiAwNTo0NTozMg0KDQoyMDA4LzExLzEgZHZkQGR2ZG1hZ25ldC5jb20gOg0KDQpZb3Ug bmVhcmx5IGhhZCBpbi4gSSB0aGluayB5b3UgYXNzdW1lZCB0aGF0IHlvdSBjb3VsZCBjb3B5IGEg ZGlyZWN0b3J5DQoNCmFuZCBpdCdzIGZpbGVzIGluIG9uZSBoaXQgYnV0IHRoYXQgbm90IHBvc3Np YmxlIHdpdGggTmV0OjpGVFANCg0KCgotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCtDCwMu/1b...

RE: Re: arguments with a module
what I mean by argument is a switch/option that I pass to the module that I call whithin my main perl script. Yes I have those line in my module: >use vars qw( @EXPORT, @ISA ); >@EXPORT = qw( function_name ); >@ISA = qw( Exporter ); >require Exporter the module is so long that is not worth posting over here. All I need is to be able to pass an argument/switch to it, in my case is a file name. so I need to have something like use mymodule -myargument=<value> I hope I am a little clearer this time. Thanks I.S Troy Denkinger <> wrote:...

Re: Re: Module question
Like I said I was frustrated. I'm using the Deitel and Deitel book. But it is probably not it's fault. I'm just confused. I thought I understood I needed to define how I should use the module so it would use it. But from what you just said I guess not. Please provide assistance or a example. Thanks.. Michael Fowler <> wrote: > On Thu, Jul 19, 2001 at 03:38:32PM -0400, wrote:> use Date::Calc; > sub dateFriday > { > $day="friday"; > $num="3"; > my $dumpday = ...

Web resources about - RE: DNN4 - CSS Class url reference lost -

Wikipedia talk:Reference desk/Guidelines/Medical advice - Wikipedia, the free encyclopedia
I disagree with this implication that this section of the guideline represents the consensus. If you look at the last few years of discussion ...

Child sex abuse royal commission: Senior politician to be grilled over reference
A former deputy Premier will again take the stand on Tuesday to explain why he gave a positive job reference to a man he knew to have sexually ...

Reference Pricing tweak for Medicaid
Reference pricing is a common payment reform for commercial insurance. Common, non-urgent, deferrable procedures are prime candidates. Hip replacement ...

10 of the best movie references you’ll ever see in popular TV shows
I'm torn when it comes to breaking the fourth wall in TV shows . It can be a fun, clever way to connect with the audience, but it can also break ...

'Enough with the Viagra references,' says the CEO behind the first FDA approved drug to boost women's ...
... the Fortune Most Powerful Women Next Gen conference. But the reaction to the pill still confounded her. "Enough already with the Viagra references," ...

Donald Trump prompts Nazi references
Some conservatives and political commentators say the GOP frontrunner's rhetoric has crossed the line

Arrow: Easter Eggs and DC Comics References in "Brotherhood"
This was a weird week for Arrow, in terms of the crazy minutia we generally look for.There were a [...]

Now you can bookmark Google image searches for later reference
Normally, image searches on Google are ephemeral things and gone the moment you close the browser tab. However, a new feature on the search giant's ...

The 5 Best Britney Spears References From Her 'Jane the Virgin' Visit
The 5 Best Britney Spears References From Her 'Jane the Virgin' Visit

How To Get the References You Need For the Job You Really Want
How To Get the References You Need For the Job You Really Want

Resources last updated: 12/14/2015 1:30:15 AM