application path and controls
-
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 :)