The first step:
Step Two:
Step Three:
Fourth step: Write the display format code in the page code, as follows
<asp:sqldatasource id= "SqlDataSource1" runat= "Server" connectionstring= "<%$ ConnectionStrings: Notebook connectionstring%> "selectcommand=" SELECT [number], [name], [remarks] from [Bijiben] "></asp:SqlDataSource> < ; Asp:repeater id= "Repeater1" runat= "Server" datasourceid= "SqlDataSource1" > <HeaderTemplate> <table> <tr> <td> number </td> <td> name Call </td> <td> remarks </td> </tr> </HEADERTEMPLATE&G T <ItemTemplate> <tr> <td><% #DataBinder. Eval (Container.DataItem, "number")%&G T;</td> <td><% #DataBinder. Eval (Container.DataItem, "name")%></td> < td><% #DataBinder. Eval (Container.DataItem, "remarks")%></td></tr> </ItemTemplate> <footertemplate> </table> </FooterTemplate> </asp:Repeater>
Complete--------
ASP. NET displays data from a database on a Web page