[讨论]总是运行出错啊!-->multiple1902转移
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="library.WebForm1" debug="True"%><%@ Register TagPrefix="cc1" Namespace="AuoControl" Assembly="AuoControl.CalendarTextBox" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Login</title>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="CSS/StyleSheet1.css" type="text/css" rel="stylesheet">
</HEAD>
<body ms_positioning="GridLayout">
<form id="Form1" method="post" runat="server">
<div style="WIDTH: 690px">
<fieldset style="WIDTH: 690px; BACKGROUND-COLOR: azure"><span style="MARGIN-LEFT: 100px; WIDTH: 2.5em; TEXT-ALIGN: right">书名</span>
<asp:textbox id="txtBookName" runat="server" Width="100px"></asp:textbox><span style="WIDTH: 4.5em; TEXT-ALIGN: center">作者</span>
<asp:textbox id="txtAuthor" runat="server" Width="96px"></asp:textbox><span style="WIDTH: 3.5em; TEXT-ALIGN: right">出版社</span>
<asp:dropdownlist id="ddlCompanyName" runat="server" Width="128px"></asp:dropdownlist>
<div style="CLEAR: both"></div>
<span style="MARGIN-LEFT: 100px; WIDTH: 2.5em; TEXT-ALIGN: right">类别</span>
<asp:dropdownlist id="ddlBookType" runat="server" Width="96px"></asp:dropdownlist><span style="WIDTH: 4.5em; TEXT-ALIGN: right">出版日期</span>
<cc1:calendartextbox id="calendarMin" runat="server"></cc1:calendartextbox><span style="WIDTH: 1.5em; TEXT-ALIGN: right"><>></span>
<cc1:calendartextbox id="calendarMax" runat="server"></cc1:calendartextbox><span style="WIDTH: 50px"> </span>
<asp:button id="btnFetchBook" runat="server" Text="查询"></asp:button></fieldset>
<div style="CLEAR: both"></div>
<div style="MARGIN-TOP: 15px; MARGIN-BOTTOM: 15px; WIDTH: 100%" align="center"><span class="floatLeft" style="WIDTH: 10.5em; TEXT-ALIGN: right">您查询的书籍</span>
<asp:datagrid id="dgdFetchBook" runat="server" Width="500px" alternatingitemstyle-backcolor="#f0f8ff"
PageSize="4" AutoGenerateColumns="False" BorderStyle="None" CellPadding="1" BorderColor="#3366CC"
BackColor="White" BorderWidth="1px" AllowPaging="True">
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
<AlternatingItemStyle BackColor="AliceBlue"></AlternatingItemStyle>
<ItemStyle ForeColor="#000066"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="#3366FF" BackColor="#CBE0FF"></HeaderStyle>
<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
<Columns>
<asp:BoundColumn Visible="False" DataField="编号" HeaderText="编号"></asp:BoundColumn>
<asp:hyperlinkcolumn target="_blank" datanavigateurlfield="编号" datanavigateurlformatstring="BookInfo.aspx?BOOKID={0}"
datatextfield="书名" sortexpression="书名" headertext="书名"></asp:hyperlinkcolumn>
<asp:BoundColumn DataField="作者" HeaderText="作者"></asp:BoundColumn>
<asp:BoundColumn DataField="出版社" HeaderText="出版社"></asp:BoundColumn>
<asp:BoundColumn DataField="类别" HeaderText="类别"></asp:BoundColumn>
<asp:BoundColumn DataField="出版日期" HeaderText="出版日期"></asp:BoundColumn>
<asp:TemplateColumn SortExpression="Enabled" HeaderText="借阅">
<HeaderStyle Width="70px"></HeaderStyle>
<ItemTemplate>
<asp:label id="lblOnLend" Runat="server" text="已借出" Visible=<%# Boolean.Parse(DataBinder.Eval(Container.DataItem,"借阅").ToString())%>></asp:label>
<asp:CheckBox ID="CheckBox" Runat="server" Visible=<%# !Boolean.Parse(DataBinder.Eval(Container.DataItem,"借阅").ToString())%>></asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
<PagerStyle HorizontalAlign="Left" ForeColor="#003399" BackColor="#99CCCC" Mode="NumericPages"></PagerStyle>
</asp:datagrid><asp:button id="btnPreviewBook" runat="server" Text="选定"></asp:button></div>
<div style="CLEAR: both"></div>
<div style="MARGIN-TOP: 15px; MARGIN-BOTTOM: 15px" align="center"><span class="floatLeft" style="WIDTH: 10.5em; TEXT-ALIGN: right">您要借出的图书</span>
<asp:datagrid id="dgdOutRec" runat="server" Width="500px" alternatingitemstyle-backcolor="#f0f8ff"
PageSize="4" AutoGenerateColumns="False" BorderStyle="None" CellPadding="1" BorderColor="#3366CC"
BackColor="White" BorderWidth="1px" AllowPaging="True">
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
<alternatingitemstyle backcolor="AliceBlue"></alternatingitemstyle>
<ItemStyle ForeColor="#00066"></ItemStyle>
<HeaderStyle Font-Bold="true" forecolor="#3366FF" backcolor="#CBE0FF"></HeaderStyle>
<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
<Columns>
<asp:hyperlinkcolumn target="_blank" datanavigateurlfield="book_id" datanavigateurlformatstring="BookInfo.aspx?BOOKID={0}"
datatextfield="书名" sortexpression="书名" headertext="书名"></asp:hyperlinkcolumn>
<asp:BoundColumn DataField="作者" HeaderText="作者"></asp:BoundColumn>
<asp:BoundColumn DataField="类别" HeaderText="类别"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="借期">
<HeaderStyle Width="70px"></HeaderStyle>
<ItemTemplate>
<asp:label id="lblLendTime" Runat ="server" text=<%# DateTime.Now.ToString()%>></asp:label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="还期">
<HeaderStyle Width="70px"></HeaderStyle>
<ItemTemplate>
<asp:label id="Label9" Runat ="server" text=<%# DateTime.Now.AddDays(10).ToString() %>></asp:label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:ButtonColumn Text="删除" HeaderText="删除" CommandName="Delete"></asp:ButtonColumn>
</Columns>
<PagerStyle HorizontalAlign="Left" ForeColor="#003399" BackColor="#99CCCC" Mode="NumericPages"></PagerStyle>
</asp:datagrid><asp:button id="btnLendBook" runat="server" Text="借阅"></asp:button></div>
<div style="CLEAR: both"></div>
<div style="MARGIN-TOP: 15px; MARGIN-BOTTOM: 15px" align="center"><span class="floatLeft" style="WIDTH: 10.5em; TEXT-ALIGN: right">您当前已经借出的书籍</span>
<asp:datagrid id="dgdRecall" runat="server" Width="500px" alternatingitemstyle-backcolor="#f0f8ff"
PageSize="4" AutoGenerateColumns="False" BorderStyle="Solid" CellPadding="1" BorderColor="#CCCCCC"
BackColor="White" BorderWidth="1px" AllowPaging="True" DataKeyField="book_id">
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
<alternatingitemstyle backcolor="AliceBlue"></alternatingitemstyle>
<ItemStyle ForeColor="#00066"></ItemStyle>
<HeaderStyle Font-Bold="true" forecolor="#3366FF" backcolor="#CBE0FF"></HeaderStyle>
<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
<Columns>
<asp:BoundColumn DataField="书名" HeaderText="书名"></asp:BoundColumn>
<asp:BoundColumn DataField="作者" HeaderText="作者"></asp:BoundColumn>
<asp:BoundColumn DataField="类别" HeaderText="类别"></asp:BoundColumn>
<asp:BoundColumn DataField="借期" HeaderText="借期"></asp:BoundColumn>
<asp:BoundColumn DataField="还期" HeaderText="还期"></asp:BoundColumn>
<asp:ButtonColumn Text="归还" HeaderText="归还" CommandName="Delete"></asp:ButtonColumn>
</Columns>
<PagerStyle HorizontalAlign="Left" ForeColor="#003399" BackColor="#99CCCC" Mode="NumericPages"></PagerStyle>
</asp:datagrid></div>
</div>
</form>
</body>
</HTML>