Truly Relative Pathz
-
I would like to configure a web project with truly relative file and image pathz. regardless of server name or application name. I used to use"../dir_name/file_name" however an organizational shift forced me to move my entire directory structure down one level. instead of modifying "../dir_name/file_name" to "../../dir_name/file_name" i was attempting to use something like... [and /Images/image_file.gif"> I again get nothing but if I set ImageUrl in the c# code behind using a variation of the line above it workz. Can anyone explain either which part of my syntax is wrong or why you can use this function sometimes but not other times. Thanks, D](<%=Request.ApplicationPath%>/Public/Home.aspx)
-
I would like to configure a web project with truly relative file and image pathz. regardless of server name or application name. I used to use"../dir_name/file_name" however an organizational shift forced me to move my entire directory structure down one level. instead of modifying "../dir_name/file_name" to "../../dir_name/file_name" i was attempting to use something like... [and /Images/image_file.gif"> I again get nothing but if I set ImageUrl in the c# code behind using a variation of the line above it workz. Can anyone explain either which part of my syntax is wrong or why you can use this function sometimes but not other times. Thanks, D](<%=Request.ApplicationPath%>/Public/Home.aspx)