<asp:DataList ID="DataList1" runat="server" > <itemtemplate> <table> <tr> <td> School Name: <asp:Label ID="lblName" runat="server" Text='<%# Bind("SchoolName") %>' align="center"> </td> </tr> <tr> <td> About School: <asp:Label ID="Label1" runat="server" Text='<%# Bind("AboutSchool") %>' align="center"> </td> </tr> <tr> <td> Contact: <asp:Label ID="Label2" runat="server" Text='<%# Bind("Contact") %>' align="center"> </td> </tr> <tr> <td> Address: <asp:Label ID="lblAddress" runat="server" Text='<%# Bind("Address") %>'> </td> </tr> <tr> <td> Website: <asp:LinkButton ID="LinkButton1" runat="server" Text='<%# Bind("Website") %>'>LinkButton </td> </tr> </table> <asp:Panel ID="pnlEdit" runat="server" Visible="false"> <asp:Button ID="btnEdit" runat="server" Text="Edit" > <asp:Button ID="btnDelete" runat="server" Text="Delete" OnClientClick="return confirm('Are you sure you want to delete selected records')"> </itemtemplate>
item.FindControl("controlId")
ItemDataBound
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)