title: convert file path to string
body: <p>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?</p>
  
  <p>Currently I am using:
  lb3.Text = Page.Request.PhysicalPath;</p>
  
  <p>And it gives me:
  Text = "C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\Default.aspx"</p>
  
  <p>Thank you guys for your comments/advice.  I am just trying to capture the file path in a string.  But when I try:
  string fullpath = Page.Request.PhysicalPath;</p>
  
  <p>in my C# code and set a breakpoint on this line, I look at the Watch window and enter fullpath and it says fullpath is out of context.  Does this make sense to you?  How do I get the path into a string variable?</p>
  
  <p>Marvin, not sure what you mean but this is more of my code in context:</p>
  
  <pre><code>protected void btnAppend_Click(object sender, EventArgs e)
          {
              Label lb3 = new Label();
              lb3.Text = Page.Request.PhysicalPath;
              string fullpath2 = Request.PhysicalPath;
  </code></pre>