Mohammed Riyaz Ali khan@ WordPress

How to get current project path in C#

Posted on: June 16, 2009

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\riyaz_db.sql“);

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


  • None

Categories

%d bloggers like this: