Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SqlDataAdapter adp = new SqlDataAdapter("select * from tbitem", ConfigurationManager.ConnectionStrings["cn"].ConnectionString);
- DataSet ds = new DataSet();
- adp.Fill(ds);
- DataList1.DataSource = ds;
- DataList1.DataBind();
- <asp:DataList ID="DataList1" runat="server">
- <ItemTemplate>
- <b>Name: </b> <%#Eval("itemnam") %><br />
- <b>Description: </b>
- <asp:Label ID="Label1" runat="server" Text='<%#Eval("itemdescription") %>'></asp:Label> <br /><br />
- </ItemTemplate>
- </asp:DataList>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement