Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. Relative path Problem

Relative path Problem

Scheduled Pinned Locked Moved Web Development
javascriptjavacsstoolshelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dipak dipak
    wrote on last edited by
    #1

    Hello, I have a master page in my project and in master page i have defined all external links on header for javascript files and css files. And all .aspx pages (including sub folder pages) are under that single master page. all these are running Properly for .aspx page located in the root and not working properly for sub folder pages, when i am setting path like: And Not running Properly for .aspx page located in the root and Working Properly for subfolder pages, when i am setting path like: <script language="javascript" type="text/javascript" src="../scripts/myScript.js"> And link like src="~/scripts/myScript.js" not working for any one. Please give me suggestion how can i define external java script path to work properly from all (root / sub folder) files.. I will be very thankful to you... :-O <div class="ForumSig">Dipak </div>

    A 1 Reply Last reply
    0
    • D dipak dipak

      Hello, I have a master page in my project and in master page i have defined all external links on header for javascript files and css files. And all .aspx pages (including sub folder pages) are under that single master page. all these are running Properly for .aspx page located in the root and not working properly for sub folder pages, when i am setting path like: And Not running Properly for .aspx page located in the root and Working Properly for subfolder pages, when i am setting path like: <script language="javascript" type="text/javascript" src="../scripts/myScript.js"> And link like src="~/scripts/myScript.js" not working for any one. Please give me suggestion how can i define external java script path to work properly from all (root / sub folder) files.. I will be very thankful to you... :-O <div class="ForumSig">Dipak </div>

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      Cross Post - DON'T!!!!!!!!!!!

      Bob Ashfield Consultants Ltd

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups