Smart    Lucky

Smart Lucky

  • NA
  • 555
  • 640.6k

File uploading problem

Aug 18 2011 11:56 PM
hi
 can any one help meeee............
i am uploading file in this way i have add second config file which is below

<?xml version="1.0"?>
<location path="Upload">
  <system.web>
    <httpRuntime executionTimeout="100" maxRequestLength="20202"/>
  </system.web>  
</location>

and cs file is this how can i upload using path which i have declare in config file and  why using 
executionTimeout 

if (FileUpload1.HasFile)
        {
            FileUpload1.SaveAs(Server.MapPath("Upload") + "\\" + FileUpload1.FileName);
        }



Answers (2)