<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Datalist2.aspx.cs" Inherits="Datalist2" %> <!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>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <asp:DataList ID="DataList1" runat="server" RepeatColumns="3" RepeatDirection="Horizontal" RepeatLayout="Flow" DataKeyField="empId" DataSourceID="SqlDataSource1"> <itemtemplate> empId: <asp:Label ID="empIdLabel" runat="server" Text='<%# Eval("empId") %>' /> <br /> empName: <asp:Label ID="empNameLabel" runat="server" Text='<%# Eval("empName") %>' /> <br /> EmpDesignation: <asp:Label ID="EmpDesignationLabel" runat="server" Text='<%# Eval("EmpDesignation") %>' /> <br /> <br /> </itemtemplate> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Expt %>" SelectCommand="SELECT * FROM [tblEmployee]"> </div> </form> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)