| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 824 人关注过本帖
标题:[求助]如何修改呢
只看楼主 加入收藏
liuminghui
Rank: 6Rank: 6
等 级:贵宾
威 望:20
帖 子:2882
专家分:0
注 册:2007-1-26
收藏
 问题点数:0 回复次数:0 
[求助]如何修改呢
<%@ 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">&lt;&gt;&gt;</span>
<cc1:calendartextbox id="calendarMax" runat="server"></cc1:calendartextbox><span style="WIDTH: 50px">&nbsp;</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>
搜索更多相关主题的帖子: Microsoft content PUBLIC false title 
2007-09-28 10:09
快速回复:[求助]如何修改呢
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.038868 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved