Path Problem in ASP.net
Posted
by Hany
on Stack Overflow
See other posts from Stack Overflow
or by Hany
Published on 2010-04-17T12:33:33Z
Indexed on
2010/04/17
12:43 UTC
Read the original article
Hit count: 281
Hi I am trying to do the following I am building asp.net website with c# language I want to read a text file from my project(the file is inside the project) I tried to get the file Path by this way :
string path=Request.PhysicalApplicationPath+"filename.txt";
but I can't use The "Request" object from separated C# file ?? note: separated C3 file,I mean it's not related with aspx file can you help me with my way or do you have another way ?? thx
© Stack Overflow or respective owner