Some questions about masterpages.

  • Thread starter Visual Systems AB \(Martin Arvidsson\)
  • Start date
V

Visual Systems AB \(Martin Arvidsson\)

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
 
K

Karl Seguin

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
 
C

clintonG

<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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top