You are on page 1of 2

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Display.aspx.cs" Inherits="Display" %> <!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 id="Head1" runat="server"> <title>Matrimonial Display</title> <link href="StyleSheet.css" rel="stylesheet" type="text/css" /> <style type="text/css"> .style1 { width: 67%; } .style2 { width: 100%; } .style3 { width: 118px; } </style> </head> <body> <form id="form1" runat="server"> <div class="main"> <h2 >Matrimonial Site</h2> <div > <h3>Search Grooms and Brides</h3><br />

<table align="center" class="style1"> <tr> <td colspan="3"> <asp:DataList ID="ddlList" runat="server" RepeatColumns="3" TabIndex="2"> <ItemTemplate> <fieldset> <table class="style2"> <tr> <td colspan="2"> <asp:hyperlink id="HyperLink1" runat="server" navigateurl='<%# String.Concat("Search.aspx?id=", Eval("Id")) %>' text='<%# Eval("Name") %>'></asp:hyperlink> </td> </tr> <tr> <td class="style3" width="30%"> <asp:Image ID="Image1" Height="100px" runat="server" ImageUrl='<%# String.Concat("Images\\", Eval("Pic")) %>' Width="85px" /> </td> <td align="left" valign="top" width="70%"> <table align="left" class="style2"> <tr> <td width="30%"> Age</td> <td> <asp:Label ID="Label1" runat="server" Text='<%# Eval("Age") %>'></asp:Label> </td> </tr> <tr> <td> Religion</td> <td> <asp:Label ID="Label2" runat="server" Text='<%# Eval("Religion") %>'></asp:Label> </td> </tr> <tr> <td> Caste</td> <td> <asp:Label ID="Label3" runat="server" Text='<%# Eval("Caste") %>'></asp:Label> </td> </tr> <tr>

<td> Country</td> <td> <asp:Label ID="Label4" runat="server" Text='<%# Eval("Country") %>'></asp:Label> </td> </tr> </table> </td> </tr> </table> </fieldset> </ItemTemplate> </asp:DataList> </td> </tr> <tr> <td align="right" width="20%"> <asp:LinkButton ID="lnkPrev" runat="server" onclick="lnkPrev_Click">Prev</asp:LinkButton> </td> <td align="center"> <asp:DataList ID="ddlCount" runat="server" RepeatDirection="Horizontal" onitemcommand="ddlCount_ItemCommand" ForeColor="#FF6600" onitemdatabound="ddlCount_ItemDataBound"> <ItemTemplate> <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='<%# Eval("PageIndex") %>' Text='<%# Eval("PageText") %>' CommandName="lnkbtnPaging"></asp:LinkButton> </ItemTemplate> </asp:DataList> </td> <td width="20%"> <asp:LinkButton ID="lnkNext" runat="server" onclick="lnkNext_Click">Next</asp:LinkButton> </td> </tr> </table>

</div> </div> </form> </body> </html>

You might also like