convert file path to string

Posted by salvationishere on Stack Overflow See other posts from Stack Overflow or by salvationishere
Published on 2010-04-14T20:50:27Z Indexed on 2010/04/14 20:53 UTC
Read the original article Hit count: 345

Filed under:
|
|
|

I am developing a c# web application with VS 2008 where I am trying to capture the physical path of the selected file. Using IE, I am finally able to retrieve this now in text variable. But I want to capture this information in string. How do I do this?

Currently I am using: lb3.Text = Page.Request.PhysicalPath;

And it gives me: Text = "C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\Default.aspx"

© Stack Overflow or respective owner

Related posts about c#

Related posts about vs2008