Showing posts with label Append URL. Show all posts
Showing posts with label Append URL. Show all posts

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");