文件操作 - Sites.aspx
返回文件管理
返回主菜单
删除本文件
文件: E:\HostingSpaces\kimblycr\howell.kimbly.in\wwwroot\Sites.aspx
编辑文件内容
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Sites.aspx.cs" Inherits="HowellWebService.Sites1" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <link href="css/bootstrap.css" rel="stylesheet" /> <link href="css/bootstrap-responsive.css" rel="stylesheet" /> <link href="css/StyleSheet.css" rel="stylesheet" /> <link href="css/ie10-viewport-bug-workaround.css" rel="stylesheet" /> <link href="css/navbar-static-top.css" rel="stylesheet" /> <link href="css/jquery-ui.css" rel="stylesheet" /> <script src="js/jquery.min.js"></script> <script src="js/jquery-ui.min.js"></script> <script src="js/bootstrap.min.js"></script> </head> <body> <form id="form1" runat="server"> <div> <div style="width:70%; float:left"> <h3>Sites</h3> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="ID" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" Width="503px"> <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> <Columns> <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True" SortExpression="ID" /> <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" /> <asp:BoundField DataField="State" HeaderText="State" SortExpression="State" /> <asp:BoundField DataField="Longitude" HeaderText="Longitude" SortExpression="Longitude" /> <asp:BoundField DataField="Lattitude" HeaderText="Lattitude" SortExpression="Lattitude" /> <asp:CheckBoxField DataField="Enabled" HeaderText="Enabled" SortExpression="Enabled" /> <asp:CommandField ShowEditButton="True" /> <asp:CommandField ShowDeleteButton="True" /> </Columns> <EditRowStyle BackColor="#999999" /> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <SortedAscendingCellStyle BackColor="#E9E7E2" /> <SortedAscendingHeaderStyle BackColor="#506C8C" /> <SortedDescendingCellStyle BackColor="#FFFDF8" /> <SortedDescendingHeaderStyle BackColor="#6F8DAE" /> </asp:GridView> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" DeleteCommand="DELETE FROM [Sites] WHERE [ID] = @ID" InsertCommand="INSERT INTO [Sites] ([Name], [State], [Longitude], [Lattitude], [Enabled]) VALUES (@Name, @State, @Longitude, @Lattitude, @Enabled)" SelectCommand="SELECT [ID], [Name], [State], [Longitude], [Lattitude], [Enabled] FROM [Sites]" UpdateCommand="UPDATE [Sites] SET [Name] = @Name, [State] = @State, [Longitude] = @Longitude, [Lattitude] = @Lattitude, [Enabled] = @Enabled WHERE [ID] = @ID"> <DeleteParameters> <asp:Parameter Name="ID" Type="Int32" /> </DeleteParameters> <InsertParameters> <asp:Parameter Name="Name" Type="String" /> <asp:Parameter Name="State" Type="String" /> <asp:Parameter Name="Longitude" Type="String" /> <asp:Parameter Name="Lattitude" Type="String" /> <asp:Parameter Name="Enabled" Type="Boolean" /> </InsertParameters> <UpdateParameters> <asp:Parameter Name="Name" Type="String" /> <asp:Parameter Name="State" Type="String" /> <asp:Parameter Name="Longitude" Type="String" /> <asp:Parameter Name="Lattitude" Type="String" /> <asp:Parameter Name="Enabled" Type="Boolean" /> <asp:Parameter Name="ID" Type="Int32" /> </UpdateParameters> </asp:SqlDataSource> </div> <div style="width:30%; float:left"> <a href="#" class="btn btn-success" data-toggle="modal" data-target="#myModal">Add</a> <br /> </div> </div> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> </div> <div class="modal-body"> <table style="width:100%"><tr><td>Name</td><td> <asp:TextBox ID="txtName" runat="server" CssClass="form-control" style="margin-bottom: 2px;"></asp:TextBox> </td></tr> <tr><td>State</td><td> <asp:DropDownList ID="DDLState" runat="server" Height="25px" Width="225px" style="margin-bottom: 2px;"> <asp:ListItem>Andaman and Nicobar Islands</asp:ListItem> <asp:ListItem>Andhra Pradesh</asp:ListItem> <asp:ListItem>Arunachal Pradesh</asp:ListItem> <asp:ListItem>Assam</asp:ListItem> <asp:ListItem>Bihar</asp:ListItem> <asp:ListItem>Chandigarh</asp:ListItem> <asp:ListItem>Chhattisgarh</asp:ListItem> <asp:ListItem>Dadar and Nagar Haveli</asp:ListItem> <asp:ListItem>Daman and Diu</asp:ListItem> <asp:ListItem>Delhi</asp:ListItem> <asp:ListItem>Goa</asp:ListItem> <asp:ListItem>Gujarat</asp:ListItem> <asp:ListItem>Haryana</asp:ListItem> <asp:ListItem>Himachal Pradesh</asp:ListItem> <asp:ListItem>Jammu and Kashmir</asp:ListItem> <asp:ListItem>Jharkhand</asp:ListItem> <asp:ListItem>Karnataka</asp:ListItem> <asp:ListItem>Kerala</asp:ListItem> <asp:ListItem>Lakshadeep</asp:ListItem> <asp:ListItem>Madhya Pradesh</asp:ListItem> <asp:ListItem>Maharashtra</asp:ListItem> <asp:ListItem>Manipur</asp:ListItem> <asp:ListItem>Meghalaya</asp:ListItem> <asp:ListItem>Mizoram</asp:ListItem> <asp:ListItem>Nagaland</asp:ListItem> <asp:ListItem>Orissa</asp:ListItem> <asp:ListItem>Pondicherry</asp:ListItem> <asp:ListItem>Punjab</asp:ListItem> <asp:ListItem>Rajasthan</asp:ListItem> <asp:ListItem>Sikkim</asp:ListItem> <asp:ListItem>Tamil Nadu</asp:ListItem> <asp:ListItem>Telangana</asp:ListItem> <asp:ListItem>Tripura</asp:ListItem> <asp:ListItem>Uttar Pradesh</asp:ListItem> <asp:ListItem>Uttaranchal</asp:ListItem> <asp:ListItem>West Bengal</asp:ListItem> </asp:DropDownList> </td></tr> <tr><td>Longitude</td><td> <asp:TextBox ID="txtLongitude" runat="server" CssClass="form-control" style="margin-bottom: 2px;" placeholder="77.XXXX"></asp:TextBox> </td></tr> <tr><td>Lattitude</td><td> <asp:TextBox ID="txtLatitude" runat="server" CssClass="form-control" style="margin-bottom: 2px;" placeholder="28.XXXX"></asp:TextBox> </td></tr> <tr><td>Enabled</td><td> <asp:CheckBox ID="ChkEnabled" runat="server" Checked="True" /> </td></tr> <tr><td></td><td> <asp:Button ID="BtnSave" runat="server" CssClass="btn btn-default" Text="Save" OnClick="BtnSave_Click" /></td></tr> </table> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> </form> </body> </html>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件