.aspx PAGE
===================================================================================
Upload Photos<br />
<asp:FileUpload ID="FileUploadImages" runat="server" class="multi " />
<br />
<asp:Button ID="ButtonAddAlbum" runat="server" Text=" Upload"
OnClick="ButtonAddAlbum_Click" />
===================================================================================
C# Code(Back End)
-------------------------------------------
if (FileUploadImages.HasFile)
{
UploadedImage upImage = new UploadedImage();
upImage.FullImages = FileUploadImages.FileBytes;
UploadedImageBLL uIBll = new UploadedImageBLL();
uIBll.CreateNewUploadedImage(upImage);
string location = Server.MapPath("UploadFile") + "\\" + FileUploadImages.FileName;
FileUploadImages.SaveAs(location);
}
--------------------
N.B.:
-------------------------
Database Filed name will be 'images' for 'FileBytes'
and 'varchar' for 'location'