Tuesday, May 12, 2009

How to get current project path in C#

The Code is to get the current path where the application/project resides...

Syntax: HttpContext.Current.Request.PhysicalApplicationPath

Example: StreamReader(HttpContext.Current.Request.PhysicalApplicationPath + @"\DataBase\Fauzi_db.sql");

1 comment:

Unknown said...

Thank you.
It was very helpful.