using Masterpage in sub dir

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jerry Qu

    #1

    using Masterpage in sub dir

    Hi All,

    1) We have masterpage in the root dir
    2) if we want ot use materpage for pages in sub dirs, there is probelm to
    display images called in the masterpage:

    <table style="backgrou nd-image: url(images/header_backgrou nd.gif);...
    The image will not show.

    Any suggestion

    TIA

    Jerry


  • Michael Nemtsev

    #2
    Re: using Masterpage in sub dir

    Hello Jerry,

    Use the root-relative path for your images like "~/images/header_backgrou nd.gif"

    ---
    WBR, Michael Nemtsev [.NET/C# MVP].
    My blog: http://spaces.live.com/laflour
    Team blog: http://devkids.blogspot.com/

    "The greatest danger for most of us is not that our aim is too high and we
    miss it, but that it is too low and we reach it" (c) Michelangelo

    JQHi All,
    JQ>
    JQ1) We have masterpage in the root dir
    JQ2) if we want ot use materpage for pages in sub dirs, there is
    JQprobelm to
    JQdisplay images called in the masterpage:
    JQ<table style="backgrou nd-image:
    JQurl(images/header_backgrou nd.gif);... The image will not show.
    JQ>
    JQAny suggestion
    JQ>
    JQTIA
    JQ>
    JQJerry
    JQ>


    Comment

    • Cowboy \(Gregory A. Beamer\)

      #3
      Re: using Masterpage in sub dir

      Relative linking. I am not sure Michael's suggestion will work with a style,
      but you can use relative position in CSS, as well. Have not done in awhile,
      but I believe it is ./ in front of the image folder. THe ~ works with many
      tags as root, but only when the particular tag's control inherits from
      webcontrol and has the routine that finds root path.

      --
      Gregory A. Beamer
      MVP; MCP: +I, SE, SD, DBA


      *************** *************** ***************
      Think outside the box!
      *************** *************** ***************
      "Jerry Qu" <jerryqu@cox.ne twrote in message
      news:%2354pyOYk HHA.4188@TK2MSF TNGP02.phx.gbl. ..
      Hi All,
      >
      1) We have masterpage in the root dir
      2) if we want ot use materpage for pages in sub dirs, there is probelm to
      display images called in the masterpage:
      >
      <table style="backgrou nd-image: url(images/header_backgrou nd.gif);...
      The image will not show.
      >
      Any suggestion
      >
      TIA
      >
      Jerry
      >
      >

      Comment

      Working...