Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you specify the differences ./,../,~/ in ASP.NET?

Tags:

asp.net

What are the differences between ./, ../, and ~/ for specifying an image in my web application?

Like current directory, root, parent directory, etc.

like image 839
abhi Avatar asked Nov 16 '10 06:11

abhi


2 Answers

"./"  //the current directory
"../" //the parent directory
"/"   //the site root directory
"~/"  //virtual root Web path
like image 183
jball Avatar answered Oct 13 '22 00:10

jball


ASP.NET Web Project Paths is a very good article in MSDN regarding paths in ASP.NET with good examples.

like image 27
Dr. Rajesh Rolen Avatar answered Oct 13 '22 01:10

Dr. Rajesh Rolen