Store and View PDF Files in a GridView
Look at the following procedure. Step 1: Database Structure . Query Create a table named tbl_pdf. WebConfig Upload.aspx Code <asp:FileUpload ID= "”FileUpload”" runat=”server” /> <asp:Button ID= "”btnsubmit”" runat=”server” Text=”Upload” /> <asp:Button ID= "”btncancel”" runat=”server” Text=”Cancel” /> <asp:Label ID= "”alert”" runat=”server”></asp:Label> <asp:GridView ID= "”GridView1″" runat=”server” /> <asp:Label ID= "”Label1″" runat=”server”></asp:Label> Screen Upload.aspx.cs Step 2: Storing PDF files into database . Source Code protected void btnsubmit_Click( object sender, EventArgs e) { try { ...