Posted on: 10/19/2012 1:35:06 AM | Views : 383

Hello, I want to embed your images in a database using fileupload and sqldatasource.
Default.aspx:
<asp:Label ID="lblFile" Text="Image File" runat="Server" /> <asp:FileUpload ID="upFile" runat="Server" /> <asp:Button ID="btnAdd" Text="Add Image" runat="Server" OnClick="btnAdd_Click" /> <hr /> <asp:SqlDataSource id="srcImages" ConnectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=D:\ImageUpload\App_Data\ImagesDB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" SelectCommand="select FileName from Images" InsertCommand="insert images (FileName,Imag ...

Go to the complete details ...