<asp:DataList ID="DataList1" runat="server" RepeatColumns="3"> <ItemTemplate> <table style=" background-color:Window; border-bottom:1px solid #CDCDCD; width:300px; height: 150px" cellpadding="2"><tr><td> Baby Name <td>:</td></td><td width="50%"> <%#DataBinder.Eval(Container.DataItem, "Baby_Name")%> <tr ><td> Father Name <td>:</td></td><td width="50%"> <%#DataBinder.Eval(Container.DataItem, "Father_Name")%></td></tr> <tr ><td width="50%"> Mother Name <td>:</td></td><td> <%#DataBinder.Eval(Container.DataItem, "Mother_Name")%></td></tr> <tr ><td width="100"> ??????????????????????????????????????????? </td></tr> </table> </ItemTemplate> </asp:DataList>
public partial class Today_Birthday_Babys : System.Web.UI.Page { UserClass ObjUser = new UserClass(); protected void Page_Load(object sender, EventArgs e) { DataSet ds = new DataSet(); DateTime dob = DateTime.Now; ds = ObjUser.select_birthdaybaby(dob); DataList1.DataSource = ds; DataList1.DataBind(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)