<%@ Register TagPrefix="Title" TagName="TitleShow" Src="/aspnetdata/Title.ascx" %>
<%@ Import Namespace="System.Data" %>
<html>
<head>
	<script language="C#" runat="server">
	void Page_load(Object sender,EventArgs e){
        	Hashtable HT=new Hashtable();
        	HT.Add("Access 2000工程开发", "a202-1.gif");
        	HT.Add("Access 2000实战问答集", "a204-1.gif");
        	HT.Add("Access 2000 VBA研究大观", "acc4.jpg");
        	HT.Add("Access 2002学习指导", "A221.jpg");
        	HT.Add("Access系统开发圣经", "a22.gif");
		BCover.DataSource = HT;
		BCover.DataBind();
	}
	void BCover_ItemCommand(Object sender,DataListCommandEventArgs e){
		Label x = new Label();
		x.Text="选择书名:" + e.CommandName + "<BR>";
		Label y = new Label();
		y.Text="作者简介:桂思强，电脑书籍专业作者，专长为数据库设计，早年为电脑媒体记者，现专事写作";
		Des.Controls.Add(x);
		Des.Controls.Add(y);
		Des.Visible=true;
      }
	</script>
</head>
<body background="/aspnetdata/images/winback.gif">
<Title:TitleShow id="BookT" Runat="server" />
<form runat="server">
请在书名上按一下左键，显示作者简介
			<asp:datalist id=BCover runat="server" 
				BorderColor="black"
				GridLines="Both"
				CellPadding="1"
				CellSpacing="1"
				Font-Size="10pt"
				HeaderStyle-font-bold="True"
				RepeatColumns="3"
				OnItemCommand="BCover_ItemCommand"
	>
				<itemtemplate>
<asp:Linkbutton Text='<%# DataBinder.Eval(Container.DataItem, "key") %>' runat="server" commandName='<%# DataBinder.Eval(Container.DataItem, "key") %>' /><br>
<a target="blank" href='<%# DataBinder.Eval(Container.DataItem, "value") %>' runat="server"><asp:image height="100" width="80" imageurl='<%# DataBinder.Eval(Container.DataItem, "value") %>' runat="server" /></a>
				</itemtemplate>
</asp:datalist>
<asp:panel id="Des" BackColor="gainsboro"
	Height="120"
	Width="300"
	visible="false"
	runat="server">
</asp:panel>
</form>
</body>