Posted on: 6/7/2014 8:24:21 PM | Views : 400

Hi,
I am trying to upload file either in upload 1 or upload 2 or both and want it to be entered in database by clicking single submit button. But It's giving me error Could not find a part of the path. I can assure you path is right because when I single upload file and click on submit button it's uploaded but when I try to use two upload box it's giving me error.
It's pointing me to : FileUpload1.SaveAs(Server.MapPath("images1/" + FileName1));

Here is the behind code:

using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClien ...

Go to the complete details ...