2
Reply

File uploading problem

Smart    Lucky

Smart Lucky

Aug 18 2011 11:56 PM
1.2k
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)