File Upload In ASP.NET

This is Source code,
  1. <form id="form1" runat="server"> <b>selected file</b>  
  2.     <asp:FileUpload ID="fileupload1" runat="server" /><br />  
  3.     <asp:Button ID="btnsubmit" runat="server" Text="upload" OnClick="btnsubmit_Click" /><br />  
  4.     <asp:Label ID="lblstatus" runat="server" />   
  5. </form> 
The code view is,
  1. protected void btnsubmit_Click(object sender, EventArgs e)   
  2. {  
  3.     if (fileupload1.HasFile) {  
  4.         try {  
  5.             string filetype = fileupload1.PostedFile.ContentType;  
  6.             if (filetype == "image/png" || filetype == "image/jpeg" || filetype == "image/jpg" || filetype == "image/gif" || filetype == "image/bmp") {  
  7.                 int filelength = fileupload1.PostedFile.ContentLength;  
  8.                 if (filelength <= 5242880) {  
  9.                     string fname = Path.GetFileName(fileupload1.PostedFile.FileName);  
  10.                     string sfolder = Server.MapPath("Ramesh//");  
  11.                     if (!Directory.Exists(sfolder)) Directory.CreateDirectory(sfolder);  
  12.                     string sfilepath = sfolder + fname;  
  13.                     fileupload1.SaveAs(sfilepath);  
  14.                     lblstatus.Text = "<b style='color:green'>file uploaded successfullly!!!!!!!!" + "</b>";  
  15.                 } else {  
  16.                     lblstatus.Text = "<b style='color:yellow'>please select image file size is max 5MB" + "</b>";  
  17.                 }  
  18.             } else {  
  19.                 lblstatus.Text = "<b style='color:deeppink'>please select only image files only......" + "</b>";  
  20.             }  
  21.         } catch (Exception ex) {  
  22.             lblstatus.Text = ex.Message;  
  23.         }  
  24.     } else {  
  25.         lblstatus.Text = "<b style='color:red'>please select any one file" + "</b>";  
  26.     }  
  27. }