<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestBusinessObject.aspx.cs" Inherits="TestBusinessObject" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title>Testowanie obiektu biznesowego</title>
	<link href="chapterStyles.css" type="text/css" rel="stylesheet" />
	<style type="text/css">
		.dataValues { font-weight: bold; }
		.singleBook { border-top: 1pt solid #E7E7E7;
		              border-left: 1pt solid #E7E7E7;
		              border-bottom: 1pt solid #D2D2D2;
		              border-right: 1pt solid #D2D2D2;
		              padding: 1em;	
		              margin: 1em;              
		              background: #FFFFE0;		              
		               }
		  .entireForm {
		            border: 2pt solid #D7D7D7; 
		  }
	</style>
</head>
<body>
	<form id="form1" runat="server">
		<div id="container">
			<h1>Testowanie obiektu biznesowego</h1>
			<p>
			W przykładzie pokazano, jak używać obiektu biznesowego
			</p>
         <asp:GridView ID="grdPublishers" runat="server"
               CssClass="entireForm" AllowPaging="false" DataKeyNames="Id"
               AutoGenerateColumns="false" 
               AutoGenerateSelectButton="true" OnSelectedIndexChanged="grdPublishers_SelectedIndexChanged">

            <Columns>
               <asp:BoundField DataField="Id" HeaderText="Id" />
               <asp:BoundField DataField="Name" HeaderText="Nazwa"/>
            </Columns>

            <HeaderStyle CssClass="singleBookTitle" />            
         </asp:GridView>
         <br />
         <asp:Panel ID="panPublisher" runat="server">
            Id: <asp:Label ID="labId" runat="server" /><br />
            Name: <asp:TextBox ID="txtName" runat="server" /><br />
            <asp:Button ID="btnUpdate" runat="server" Text="Aktualizuj" OnClick="btnUpdate_Click" />
            <asp:Button ID="btnInsert" runat="server" Text="Wstaw" OnClick="btnInsert_Click" />
         </asp:Panel>
         <asp:GridView ID="grdErrors" runat="server" AutoGenerateColumns="true" ShowHeader="False"/>
	</div>                

	</form>
</body>
</html>

