Points
- Add a aspx page with name demo.
- Add a Gridview control from toolbox on aspx page in div.
- Add Text Box and submit button.
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Demo.aspx.cs" Inherits="architecture.Demo" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title></title>
- </head>
- <body>
- <form id="form1" runat="server">
- <div> <label>Enter First Name</label>
- <asp:TextBox ID="txtColor" runat="server"></asp:TextBox>
- <asp:Button ID="btnAdd" runat="server" Text="Submit" OnClick="Submit" /> <br />
- <asp:GridView ID="gvlist" runat="server" AutoGenerateColumns="false" OnRowDataBound="GridView1_RowDataBound" CellPadding="4" ForeColor="#333333">
- <Columns>
- <asp:BoundField DataField="FirstName" HeaderText="FirstName" />
- <asp:BoundField DataField="LastName" HeaderText="FirstName" /> </Columns>
- <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
- <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> </asp:GridView>
- </div>
- </form>
- </body>
- </html>


Join the conversation! Your thoughts help the community grow.