title: upload file to a folder in asp.net?
body: <pre><code>if (FileUpload1.HasFile)
              try
              {
                  FileUpload1.SaveAs("C:\\Users\\Vinay\\Documents\\Visual Studio 2010\\WebSites\\Onlinedoctorsportal\\vini" + 
                       FileUpload1.FileName);
                  Label10.Text = "File name: " +
                       FileUpload1.PostedFile.FileName + "&lt;br&gt;" +
                       FileUpload1.PostedFile.ContentLength + " kb&lt;br&gt;" +
                       "Content type: " +
                       FileUpload1.PostedFile.ContentType;
              }
              catch (Exception ex)
              {
                  Label10.Text = "ERROR: " + ex.Message.ToString();
              }
          else
          {
              Label10.Text = "You have not specified a file.";
          }
             //Stream obj = FileUpload1.FileContent;
             //Session["file"] = obj;
             //Response.Redirect("Form3.aspx");
          }
  }
  </code></pre>
  
  <p>what i want is to save the uploaded file to a folder named vini but it is showing the file but not saving it to the specified folder as shown please help</p>