473,395 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

~ refer to which directory

I see a src= ~/BLahBlah/foo.ascx. I wonder which directory ~ refers to?

May 31 '07 #1
5 957
It's the virtual path of the application directory

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
<go***********@gmail.comwrote in message
news:11*********************@u30g2000hsc.googlegro ups.com...
>I see a src= ~/BLahBlah/foo.ascx. I wonder which directory ~ refers to?

May 31 '07 #2

<go***********@gmail.comwrote in message
news:11*********************@u30g2000hsc.googlegro ups.com...
>I see a src= ~/BLahBlah/foo.ascx. I wonder which directory ~ refers to?
The root directory of the application. So BlahBlah would be a subdirectory
in the root.

Mike
May 31 '07 #3
It refers to the web root of your web application.
Here's more info:
http://authors.aspalliance.com/remas...eatures/Tilde/

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
<go***********@gmail.comwrote in message
news:11*********************@u30g2000hsc.googlegro ups.com...
>I see a src= ~/BLahBlah/foo.ascx. I wonder which directory ~ refers to?
May 31 '07 #4
Sorry, I think my answer was wrong.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
"Alvin Bruney [MVP]" <some guy without an email addresswrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
It's the virtual path of the application directory

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
<go***********@gmail.comwrote in message
news:11*********************@u30g2000hsc.googlegro ups.com...
>>I see a src= ~/BLahBlah/foo.ascx. I wonder which directory ~ refers to?


May 31 '07 #5
KJ
~ is always the application root dir

<go***********@gmail.comwrote in message
news:11*********************@u30g2000hsc.googlegro ups.com...
>I see a src= ~/BLahBlah/foo.ascx. I wonder which directory ~ refers to?

Jun 1 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike | last post by:
I've been trying to setup Dean Allen's excellent "Refer" script. (http://www.textism.com/tools/refer/) The instructions say to add this code to the bottom of whatever web pages you want the...
1
by: MK | last post by:
What would be the best platform-independent way to refer to the current (execute) path for a Python script? self.dirname = ??? This variable should contain directory name for the current path....
1
by: Parzival | last post by:
I have a package that includes some data files. I am planning to use a distutils setup script to install the package. How can I compute a path name for such a data file that will always be relative...
3
by: paul reed | last post by:
Hi , I have a few folders within my root directory on my web server where different app components live. One folder, "Reports", is where all the ASPX pages live that have reports embedded in...
1
by: Dave | last post by:
Sorry, another quick question, How can I refer to the root of my web application? Say I have an image in my root folder that I want to use in a subfolder of a subfolder of the web application....
1
by: ad | last post by:
I place a Loading.aspx in the Util folder of my project, Util folder in in the root directory. I refer Loading.aspx in this way: ~/Util/Loading.aspx in Javascript, But it fail to find...
2
by: ad | last post by:
I want to get the Application path, I use the code: string sDir = Request.ApplicationPath ; It run well in code behind, but if I place the code above in Global.asax like: void...
3
by: Dan Sikorsky | last post by:
How do you get a reference to the LoginStatus control contained in the LoginView control that resides on web.master? I need to determine if the LoginStatus will show a LogOut link(for a logged...
5
by: Web Search Store | last post by:
Hello, I made a web page using visual studio. I also made a public class in the app_code folder called 'allvars' In the main web page durning the page startup, I can refer to public shared...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.