title: C# Get and Set property programmatically on FileUpload1.PostedFile
body: <p>I have a file upload control on my asp.net mobile application.
  My requirement is while accessing a local folder path from browser; I need to set the path programmatically.
  And don’t allow user to brows the file.</p>
  
  <p>My question is, when I try to access File-upload Control property name like -> Posted-file 
  That will not allow me to set the values programmatic. That will allow read-only currently.<br>
  It is possible to set the values programmatically on file-upload control?<br>
  Or Is there another way to expose the <strong>FileUpload1.PostedFile</strong> property using like web User Control?   </p>
  
  <p>Exp:</p>
  
  <pre><code>public partial class TestWebUserControl : System.Web.UI.UserControl
  {
  public System.Web.HttpPostedFile PostedFileText
  {            
  get { return FileUpload1.PostedFile; }
  //set { FileUpload1.PostedFile = value; }
  }
  }
  </code></pre>