how to get application path when the application start?

H

haiwen

Hello, every one

we can get an application path by

Server.MapPath(Request.ApplicationPath

But if I wish to do something when the application start, such as at th
Application_Start(Object sender, EventArgs e) in Global.asax file. At this time, the Request is not available.

Could anyone tell me how to get the application path in other way?

Thanks so much

Haiwen
 
H

haiwen

Hello, Joe:

It does work, thank you so much!

Could you explain a little bit what it's different prepend Context..

without the Context. i can get the application path when the Session start.

I do appreciate your help.

Sincerely,

haiwen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top