You are on page 1of 2

..................ADDRESS BOOK in ASP.NET............................

AllRecord.aspx HTML code


------------------------------------------

<body>
<form id="form1" runat="server">
<div>

<table cellpadding="0" cellspacing="0" width="90%" border="0" height="100%">


<tr><td width="10px"></td>
<td><asp:Image ID="imageContact" runat="server" ImageUrl="~/2.png"/>
</td></tr>
<tr><td width="10px"></td>
<td width="90%" background="BackGround.jpg" align="left">
<asp:Button ID="btnSubmit" runat="server" Text="Add New Address"
OnClick="btnSubmit_Click" /> &nbsp; &nbsp; &nbsp; &nbsp;
<asp:Button ID="btnSearch" runat="server" Text="Search A Address"
OnClick="SearchRecord" /> &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;
<asp:Image ID="ImgMove" runat="server" ImageUrl="~/ball1-a.gif" />
<asp:Label ID="lblSearch" Text="All Address" runat="server" Font-
Bold="true" ForeColor="#ff6600"
Font-Size="16pt"> </asp:Label>
&nbsp; &nbsp; &nbsp; &nbsp;
<asp:Image ID="ImgDate" runat="server" ImageUrl="~/hourglass-b.gif" />
<asp:Label ID="lblShowTime" runat="server" Text="Date" Font-
Bold="true">
</asp:Label>
&nbsp; &nbsp;
<asp:Label ID="lbltime" runat="server"></asp:Label>
</td></tr>
<tr><td height="5px"></td></tr>
<tr><td width="10px"></td>
<td><table background="BackGround.jpg" cellpadding="0"
cellspacing="0"
height="100%" border="0" width="100%">
<tr><td height="25px"></td></tr>
<tr><td width="10px"></td>
<td align="center" >
<asp:DataGrid ID="GridAllRecord" runat="server" AutoGenerateColumns="false"
Width="90%" DataKeyField="ID"
PagerStyle-HorizontalAlign="Center"
BorderStyle="ridge" GridLines="Both"
BorderWidth="2px" BorderColor ="white"
BackColor="white" CellPadding="3" CellSpacing="1"
OnEditCommand="EditAddress"
OnDeleteCommand="AddressDelete"
OnItemCommand="Grid_ItemCommand"
AllowSorting="true" PageSize=5
OnPageIndexChanged="GridAllRecord_PageIndexChanged"
AllowPaging="true">
<FooterStyle ForeColor="Black"
BackColor="#C6C3C6"></FooterStyle>
<HeaderStyle Font-Bold="True" ForeColor="#FFFFFF"
BackColor="#A53A6A"></HeaderStyle>
<FooterStyle BackColor="beige" />
<PagerStyle Font-Bold="true" Mode=NumericPages Font-
Underline="true"/>
<Columns>
<asp:BoundColumn DataField=ID HeaderText="ID"
Visible="false">
<ItemStyle BackColor="graytext" />
<HeaderStyle BackColor="graytext" />
</asp:BoundColumn>

<asp:TemplateColumn HeaderText="First Name">


<ItemTemplate>
<asp:LinkButton ID="lnkName" runat="server" Text='<
%#DataBinder.Eval
(Container.DataItem,"FirstName") %>'
CommandName="RecordShow"> </asp:LinkButton>
</ItemTemplate>
</asp:TemplateColumn>

<asp:BoundColumn DataField=LastName HeaderText="Last


Name">
<ItemStyle BackColor=GhostWhite />
</asp:BoundColumn>

<asp:BoundColumn DataField=PersonelEmail
HeaderText="Personnel(EMail)">
<ItemStyle BackColor=GhostWhite />
</asp:BoundColumn>

<asp:BoundColumn DataField=Mobile HeaderText="Mobile">


<ItemStyle BackColor=GhostWhite />
</asp:BoundColumn>

<asp:EditCommandColumn EditText="Edit Address"


HeaderText="Edit Address">
</asp:EditCommandColumn>
<asp:ButtonColumn CommandName="DeleteAddress"
HeaderText="Delete Address"
Text="Delete"></asp:ButtonColumn>
</Columns>
</asp:DataGrid>
</td>
</tr>
<tr><td height="25px"></td></tr>
</table></td></tr>
<tr><td height="15px"></td></tr>
<%-- <tr><td width="10px"></td><td><asp:Label ID="lblTotalRegisterartion"
runat="server"
Text="Total Registered Address :"></asp:Label><asp:Label
ID="lblRegistered"

runat="server"></asp:Label></td></tr>--%>
</table>
</div>
</form>
</body>

You might also like