pp/1/Default.aspx 2.5 KB (2532b); Sat, 04 Jun 2011 17:42
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="GCats_Default" EnableViewState="false" %>

<!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 runat="server">
    <title>Items By Category</title>
<style type="text/css">
table { border-collapse:collapse; }
td, th { padding: 4px; }
.lnk-y, .lnk-n { text-decoration: none; padding: 3px 6px 3px 6px; display: block; }
.lnk-y { background-color: #8F8; } 
.lnk-n { background-color: #F88; } 
.lnk-y:hover, .lnk-n:hover { background-color: #aaa; }
.mnu a { padding: 3px 6px 3px 6px; background-color: #99CCFF; 
	line-height: 20px; font-weight: bold; color: #336699; }
.mnu .s { background-color: #EF8366; }
</style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="LinksCtl" class="mnu" runat="server" />
    <asp:PlaceHolder ID="phIByC" runat="server" Visible="false">
        <h3>Items By Cats</h3>
        <table border="1">
        <tr><th>Item</th><th>Cats</th></tr>
        <div ID="ItemsByCtl" runat="server" />
        </table>
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="phCByI" runat="server" Visible="false">
        <h3>Cats By Items</h3>
        <table border="1">
        <tr><th>Cat</th><th>Items</th></tr>
        <div ID="CatsByCtl" runat="server" />
        </table>
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="phMatrix" runat="server" Visible="false">
        <h3>Matrix</h3>
        <table border="1">
        <tr><th>Items/Cats</th><div ID="MtxCats" runat="server" /></tr>
        <div ID="MtxItms" runat="server" />
        </table>
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="phCats" runat="server" Visible="false">
        <h3>Cats</h3>
        <asp:TextBox ID="NewCatCtl" runat="server" />
        <asp:Button ID="NewCatBtn" runat="server" Text="Save" OnClick="OnNewCat" />
        <br />
        <asp:ListBox ID="CatsCtl" Width="270" DataTextField="Name" DataValueField="Id" runat="server" />
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="phItems" runat="server" Visible="false">
        <h3>Items</h3>
        <asp:TextBox ID="NewItemCtl" runat="server" />
        <asp:Button ID="NewItemBtn" runat="server" Text="Save" OnClick="OnNewItem" />
        <br />
        <asp:ListBox ID="ItemsCtl" Width="270" DataTextField="Name" DataValueField="Id" runat="server" />
    </asp:PlaceHolder>
    </form>
</body>
</html>