jo.
jo.

Reputation: 1

How can I find a folder in a web application project asp.net 2.0

I have a folder Called EG"myFolder" in a web application project. Programmatically i need to find the path. If I do Request.URl.AbosoluteURI it gives the full path How do I locate myfolder in this webproject?

Example http://localhost/mysite/myFolder

Upvotes: 0

Views: 206

Answers (2)

ACP
ACP

Reputation: 35268

You can also use server.mappath

Upvotes: 0

ACP
ACP

Reputation: 35268

Hai jo,

Hi,

If you want to know all the path's of the Applicatiion then it would be best to use the following:

Application Physical Path: Request.PhysicalApplicationPath

Application Path: Request.ApplicationPath

Current Page Path: Request.CurrentExecutionFilePath

For the Bin folder path append the Applicaton Path + bin , and through this you can easily find out the Bin folder path.

Like all these you willl find all the Paths.

Upvotes: 1

Related Questions