<asp:DataList ID="DataList1" runat="server" BorderColor="LightGreen" BorderStyle="None"
BorderWidth="1px" CellPadding="3" CellSpacing="2" Font-Names="Verdana" Font-Size="Small"
GridLines="None" RepeatColumns="1" RepeatDirection="Vertical"
Width="600" OnCancelCommand="DataList1_CancelCommand"
OnDeleteCommand="DataList1_DeleteCommand" OnEditCommand="DataList1_EditCommand"
DataKeyField="Id" OnUpdateCommand="DataList1_UpdateCommand"
onitemdatabound="DataList1_ItemDataBound">
<HeaderTemplate>
<asp:Label ID="lblArea" runat="server" Text="School Details">
</HeaderTemplate>
<itemtemplate>
<asp:Image ID="ImagePath" runat="server" ImageUrl='<%#Bind("ImagePath") %>' Width="150px"
Height="150px" />
|
School Name:
<asp:Label ID="lblName" runat="server" Text='<%# Bind("SchoolName") %>' align="center">
|
About School:
<asp:Label ID="Label1" runat="server" Text='<%# Bind("AboutSchool") %>' align="center">
|
Contact:
<asp:Label ID="Label2" runat="server" Text='<%# Bind("Contact") %>' align="center">
|
Address:
<asp:Label ID="lblAddress" runat="server" Text='<%# Bind("Address") %>'>
|
Website:
<asp:LinkButton ID="LinkButton1" runat="server" Text='<%# Bind("Website") %>'>LinkButton
|
<asp:Panel ID="pnlEdit" runat="server" Visible="false">
<asp:Button ID="btnEdit" runat="server" Text="Edit" CommandName="Edit" CssClass="btnstyle">
<asp:Button ID="btnDelete" runat="server" Text="Delete" CommandName="Delete" CssClass="btnstyle"
OnClientClick="return confirm('Are you sure you want to delete selected records')">