Absolute and relative paths in applicaiton

ASP.NET

    Next

  • 1. Display Image While Importing
    Hi I am currently creating part of a system which does a simple import of a CSV file using SQL Server with DTS. The front end to this is a web based .NET (C#) app. Obviously when the CSV file is large, there is a delay for the user receiving any feedback from the system. I therefore want to do what I have seen other systems do and display a gif image to show the user that something is happening (eg. spinning images etc). It would be great if someone could help me with this! Thanks very much Dave
  • 2. can't debug in ASP.NET
    When i add breakpoint to my asp.net project and run it with F5, he won't break and i'm sure that the code is been executed. I have the entry in my web.config that sais that debug="true": <compilation defaultLanguage="vb" debug="true"> What can it be?

RE: Absolute and relative paths in applicaiton

Postby TmljayBXZWduZXI » Thu, 07 Dec 2006 05:05:02 GMT

Try using "~/StyleSheet/LoginINSTFooter.ascx"  This works for us and we build 
the app to many different machines and domains.

You can also use Page.ResolveURL("") in your code also.

-- 
Nick Wegner







Similar Threads:

1.How to chage Absolute url to relative url ,and relative url to absolute url

How to chage Absolute url to relative url ,and relative 
url to absolute url

2.why relative hint path but absolute reference path

I have a vs.net 2002 solution that contains a number of projects
All projects are created in folders under the solution folder.
The idea here is that this entire solution should be 'moveable' ie. copied
to and useable from a new directory or computer.
And it almost is.

One project makes reference to an existing .net dll that also exists in a
folder under the solution folder.
The project file shows a relative hint path to the dll ie
"..\..\dllFolder\my.dll"
If I move the solution to a new folder and the open solution from the new
location, the dll can no longer be found.  if i restore the original
solution folder, the dll is once again found.  so obviously, although the
project file includes a relative hint path, vs.net is in fact looking for
the dll at an absolute location.  This is causing headaches as this solution
cannot be 'passed around'  without re-adding the reference to this dll.

is there some setting somewhere to get the relative path used ?
there does not seem to be any problem using relative project references - is
there some trick using a dummy project to get this to work ?

gerry



3.Get machine name path from relative or absolute path

Hello, is it possible in C#.Net to get a path to a file in the form
"\\Spain\Madrid\readme.txt" from a relative path i.e "readme.txt" or
from a absolute path in the following form "C:\Madrid\readme.txt" where
"Spain" is the name of the machine that the file is on? Thanks in
advance.

4.absolute path to relative path conversion

5.why relative hint path but absolute reference path

I have a vs.net 2002 solution that contains a number of projects
All projects are created in folders under the solution folder.
The idea here is that this entire solution should be 'moveable' ie. copied
to and useable from a new directory or computer.
And it almost is.

One project makes reference to an existing .net dll that also exists in a
folder under the solution folder.
The project file shows a relative hint path to the dll ie
"..\..\dllFolder\my.dll"
If I move the solution to a new folder and the open solution from the new
location, the dll can no longer be found.  if i restore the original
solution folder, the dll is once again found.  so obviously, although the
project file includes a relative hint path, vs.net is in fact looking for
the dll at an absolute location.  This is causing headaches as this solution
cannot be 'passed around'  without re-adding the reference to this dll.

is there some setting somewhere to get the relative path used ?
there does not seem to be any problem using relative project references - is
there some trick using a dummy project to get this to work ?

gerry






6. Absolute or Relative path?

7. Relative & absolute path question (JavaScript, mostly)

8. User controls --> Relative/Absolute Paths



Return to ASP.NET

 

Who is online

Users browsing this forum: No registered users and 83 guest