CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 7/9/2007 8:46:59 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 24 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
bopo
Asp.Net User
CSS Link Refs Not Working From Masterpage7/9/2007 8:46:59 PM

0/0

Hi everyone

 



Well my css files are located in /CSS/ folder, and my masterpage is just located at the root, the css files work fine with the template, but when I create a page in a new folder, they dont apply.

 I have changed the link refs several times, such as ~/CSS/Layout.css but none of these are working, below iare both the hrefs,

    <link href="/CSS/SimpleMenu.css" rel="stylesheet" type="text/css" />
    <link href="/CSS/Layout.css"rel="stylesheet" type="text/css"  />
 

Help appreciated.

 

Cheers 

farazsk11
Asp.Net User
Re: CSS Link Refs Not Working From Masterpage7/9/2007 9:09:14 PM

0/0

Hi,

For the pages inside other folders try to use this path <link href="../CSS/SimpleMenu.css" rel="stylesheet" type="text/css" />

I hope it will help you out

Thanks and best regards,


Faraz Shah Khan
MCP
http://farazsk11.spaces.live.com
I was born Intelligent, education Ruined me!!
W3bM4k3r
Asp.Net User
Re: CSS Link Refs Not Working From Masterpage7/10/2007 9:06:32 AM

0/0

The easiest method is to use references that refer back to the root folder

 e.g. <link href="~/CSS/SimpleMenu.css" rel="stylesheet" type="text/css" />
        <link href="~/CSS/Layout.css"rel="stylesheet" type="text/css"  />

You should find that this should find the correct folder everytime, in asp.net 2.0 anyway!

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
CSS Link Refs Not Working From Masterpage - ASP
Heather's Base Master Page File for SharePoint 2007 I can't see any dodgy file refs in there & I've got a standard install, so not sure what the deal is. I've got the MS simple master page working fine, ...
[Resolved] Stylesheet from included header page not visible Normally these link ref tags would reside in the master page, not the includable pages. Having includables in a subdirectory is not an issue ...
using fixed header datagrid in masterpage : datagridfixedheader ... Then I created css file, but top property is not working fine. ...
Master pages - Spring.NET - Confluence Nov 27, 2005 ... Technically, html and body tags are not necessary in the example above, because they are already defined in the master page. ...
Master Page and GridView - VBForums On Ref#1, on a page not using a master page, myGrid.Rows is equal to myGrid. PageSize, as expected. On a page using a master page, myGrid. ...
ASP.NET and Styles & CSS Embedding - Rick Strahl's Web Log this.Header.Controls.Add(css); in master page, VS 2008 RTM (3.5), I get squiggly lines, "The class or cssclass value is not defined", in all code pages. ...
SVG Print 1.2, Part 2: Language Publication as a Working Draft does not imply endorsement by the W3C Membership. .... Help:User style - Wikipedia, the free encyclopedia Nov 20, 2008 ... Just enter some css/js in that page. The preview of JS does not work, ..... We have to switch this off for links due to Template:Ref! ...
Bitlink Development Blog | Development Blog: C#, Javascript, CSS ... ... The page has one or more controls that do not correspond with controls in the Master Page. ...




Search This Site:










smcculloch's newsarticle module-centralization

always selects first from drop down list...?

asp.net isapi filter and joomla

getting random items from a collection

machine.config updating

need help with deleting a record

how to remove dulpicate records in array

dynamic web development

asp .net 1.1 and medium trust level

page body onload() problem

property. which one should i use?

asp .net visual basic 2003 printing

is there a tool for building skin files?

duplicate users online modules

best way to get userid guid in dnn3.0.x

what do i use instead of <%= ?

.net 2.0 encryption web.config/app.config options?

setting directory permissions

email problems (page runs slow, real slow)

passing sql parms

creating a web part for sharepoint

filesystem tutorial and examples

making my site live?

how to create .sql files?

new to dotlangauge

passing session("ftpfolder") to a class file

information of 2 different sites in one cookie

start up ie in kiosk mode

login/loout status ?

[wizard control] halting / preventing next step programmatically?

 
All Times Are GMT