<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> <asp:FileUpload ID="FileUpload1" runat="server" /> <asp:Button ID="btnUpload" runat="server" Text="Upload" OnClick="btnUpload_Click" /> <br /> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="always"> <ContentTemplate> <asp:DropDownList ID="ddlSheetName" runat="server" AutoPostBack="True" onselectedindexchanged="ddlSheetName_SelectedIndexChanged"> </asp:DropDownList> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="ddlSheetName" EventName="SelectedIndexChanged" /> </Triggers> </asp:UpdatePanel> <br /> <asp:Label ID="Label1" runat="server" Text="Has Header ?" /> <asp:RadioButtonList ID="rbHDR" runat="server"> <asp:ListItem Text="Yes" Value="Yes" Selected="True"></asp:ListItem> <asp:ListItem Text="No" Value="No"></asp:ListItem> </asp:RadioButtonList> <asp:Button ID="btnInsert" runat="server" OnClick="btnInsert_Click" Text="Insert" Enabled="false"/> <asp:GridView ID="GridView1" runat="server" AllowPaging="False" CssClass="table table-hover table-striped" AutoGenerateEditButton="false" CellPadding="4" ForeColor="Black" Height="110px" Style="margin-right: 0px" Width="1000px" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" GridLines="Horizontal" OnRowEditing="GridView1_RowEditing" OnRowCancelingEdit="GridView1_RowCancelingEdit"> <FooterStyle BackColor="#CCCC99" ForeColor="Black" /> <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" /> <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" /> <SortedAscendingCellStyle BackColor="#F7F7F7" /> <SortedAscendingHeaderStyle BackColor="#4B4B4B" /> <SortedDescendingCellStyle BackColor="#E5E5E5" /> <SortedDescendingHeaderStyle BackColor="#242121" /> </asp:GridView> </asp:Content>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)