dataconnectivity u can give on page load event means connectionstring
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<table border="1" width="100%">
<tr>
<th>name</th>
<th>userID</th>
<th>password</th>
<th>dob</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><%#DataBinder.Eval(Container.DataItem,"name")%></td>
<td><%#DataBinder.Eval(Container.DataItem,"userID")%></td>
<td><%#DataBinder.Eval(Container.DataItem,"password")%></td>
<td><%#DataBinder.Eval(Container.DataItem,"dob")%></td></tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
name ,userID,password,dob are table columns in database
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<table border="1" width="100%">
<tr>
<th>name</th>
<th>userID</th>
<th>password</th>
<th>dob</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><%#DataBinder.Eval(Container.DataItem,"name")%></td>
<td><%#DataBinder.Eval(Container.DataItem,"userID")%></td>
<td><%#DataBinder.Eval(Container.DataItem,"password")%></td>
<td><%#DataBinder.Eval(Container.DataItem,"dob")%></td></tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
name ,userID,password,dob are table columns in database
No comments:
Post a Comment