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
  1. Home
  2. Web Development
  3. ASP.NET
  4. application path and controls

application path and controls

Scheduled Pinned Locked Moved ASP.NET
questionjava
1 Posts 1 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.
  • J Offline
    J Offline
    jpribele
    wrote on last edited by
    #1

    I don't know maybe I am missing something but, why doesn't the application path automaticaly get added to controls when you regsiter them for instance. if use this <%@ Register TagPrefix="vg" TagName="Header" src="/controls/header.ascx" %> it should find the control under http://localhost/applicationpath/controls/header.ascx but instead it looks for the control under http://localhost/controls/header.asxc If I wanted you use a control outside of my application path (which would rarely happen) and I should have to specific a complete url like "http://loclahost/sometthingelse/controls/header.ascx" since it doesn't do this how do i work around this ? this doesn't work. <%@ Register TagPrefix="vg" TagName="Header" src="<%=Request.ApplicationPath%>/controls/header.ascx" %> this is something else i don't understand why can't I put runtime expression into asp tags ? I know this will probably start a flame war but I can do all of the above with jsp :)

    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