|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Some questions about masterpages.I have created a masterpage, now i have a tree where pages resides because all visitors should not be able to peek on the private pages. The masterpage contains A table, the table contains a background-image. As long as the pages is where the masterpage is, the images is displayed. When i create a new page in another folder, the images are not displayed. I have tried to set the url to ~/images/header.bmp, but it don't work, now no images are displayed not when files are in the root. What could be wrong? Hope you understod what i want to do. My english is a bit poor, i am swedish :D RegardsMartin does the image have a runat="server" in it? If not ~ is meaningless. ~
only works for server controls. As an alternative, I'd recommend you use a stylesheet, in which case the image path will always be reletive to the css master.master page1.aspx page2.aspx directory\page3.aspx styles\styles.css images\blah.gif if in your master.master you have <table class="x">... and in your stylesheet, which is included in your master page, you have table.x { background: url("../images/blah.gif"); } everything should work fine because it's relative to the location of the css. Also, why are you using bmp? :) Karl Show quoteHide quote "Visual Systems AB (Martin Arvidsson)" <martin.arvids***@vsab.net> wrote in message news:u88lpyQ8FHA.1292@tk2msftngp13.phx.gbl... > Hi! > > I have created a masterpage, now i have a tree where pages resides because > all visitors should not be able to peek on the private pages. > > The masterpage contains > > A table, the table contains a background-image. > > As long as the pages is where the masterpage is, the images is displayed. > When i create a new page in another folder, the images are not displayed. > > I have tried to set the url to ~/images/header.bmp, but it don't work, now > no images are displayed not when files are in the root. > > What could be wrong? > > Hope you understod what i want to do. My english is a bit poor, i am > swedish :D > > Regards > Martin > <snip />
Spend more time learning about 2.0 as there are many new classes and controls. You want to learn about the LoginView control and you also want to learn about Membership, Roles and Profiles. That is how we can easily make it possible for some users to see pages and others not be able to see pages. Also, the LoginView makes it possible for everybody to see a page but some users can see content that others can not depending on what role the users belong to. <%= Clinton Gallagher METROmilwaukee (sm) "A Regional Information Service" NET csgallagher AT metromilwaukee.com URL http://metromilwaukee.com/ URL http://clintongallagher.metromilwaukee.com/
Other interesting topics
XHTML 1.0
Correct syntax for an update stored procedure About web.config file Retreive images stored in Access database Can we search keywords in a word document? Setting Profile properties for not logged in users Dynamic content problem MS Forms 2.0 Combo box control How to initiate a postback in a function? Problem with aspnet_wp.exe |
|||||||||||||||||||||||