Show excel data in gridview and insert it in database
Show excel data in gridview and insert it in database Here we do upload excel using fileuploader and then display its data in gridview. DataBase Tables Table creation CREATE TABLE [dbo].[excel_test]( [cust_id] [varchar](50) NULL, [city] [varchar](150) NULL, [country] [varchar](150) NULL, [post] [varchar](150) NULL ) ON [PRIMARY] .Aspx Part <asp:FileUpload ID="FileUpload1" runat="server" /> <asp:Button ID="btnUpload" runat="server" Text="Upload" OnClick="btnUpload_Click" /> <br /> <asp:Label ID="Label1" runat="server" Text="Has Header ?"></asp:Label> <asp:RadioButtonList ID="rbHDR" runat="server"> <asp:ListItem Text = "Yes" Value = "Yes" Selected = "True" ></asp:ListItem> ...