代码拉取完成,页面将自动刷新
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FindBookData.aspx.cs" Inherits="FindBookData" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<style type="text/css">
.auto-style1 {
font-size: x-large;
}
.auto-style2 {
font-size: xx-large;
}
</style>
</head>
<body style="background-image: url('/Images/background.jpg')">
<form id="form1" runat="server">
<div align="center" style="background-color: #CCFFCC;background-image: url('/Images/background.jpg')">
<span class="auto-style2">
<br />
按书籍上架日期查找<br />
</span><span class="auto-style1">
<br />
<br />
请输入添加日期:</span><asp:TextBox ID="TextBox1" runat="server" CssClass="auto-style1" Height="30px" Width="283px"></asp:TextBox>
<br />
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Book_Id" DataSourceID="SqlDataSource1" CssClass="auto-style1">
<Columns>
<asp:BoundField DataField="Book_Id" HeaderText="Book_Id" ReadOnly="True" SortExpression="Book_Id" />
<asp:BoundField DataField="Book_Name" HeaderText="Book_Name" SortExpression="Book_Name" />
<asp:BoundField DataField="Book_Class_Id" HeaderText="Book_Class_Id" SortExpression="Book_Class_Id" />
<asp:BoundField DataField="Book_Author" HeaderText="Book_Author" SortExpression="Book_Author" />
<asp:BoundField DataField="Book_Press" HeaderText="Book_Press" SortExpression="Book_Press" />
<asp:BoundField DataField="Book_Price" HeaderText="Book_Price" SortExpression="Book_Price" />
<asp:BoundField DataField="Book_Number" HeaderText="Book_Number" SortExpression="Book_Number" />
<asp:BoundField DataField="Book_RestNumber" HeaderText="Book_RestNumber" SortExpression="Book_RestNumber" />
<asp:BoundField DataField="Book_Date" HeaderText="Book_Date" SortExpression="Book_Date" />
</Columns>
</asp:GridView>
<br />
<br />
<asp:Button ID="Button1" runat="server" Text="查找" CssClass="auto-style1" />
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="返回" CssClass="auto-style1" />
<br />
<br />
<asp:Label ID="lblMsg" runat="server"></asp:Label>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:BookShopConnectionString %>" OnSelected="SqlDataSource1_Selected" SelectCommand="SELECT * FROM [BookInfo] WHERE ([Book_Date] = @Book_Date)">
<SelectParameters>
<asp:ControlParameter ControlID="TextBox1" Name="Book_Date" PropertyName="Text" Type="DateTime" />
</SelectParameters>
</asp:SqlDataSource>
<br />
</div>
</form>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。