admin/paper_edit.aspx

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Language="C#" MasterPageFile="~/admin/MasterPage.master" AutoEventWireup="true" CodeFile="paper_edit.aspx.cs" Inherits="admin_paper_edit" Title="编辑文章" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  
   <center><asp:DetailsView ID="DetailsView1" runat="server" 
        BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
        CellPadding="2" ForeColor="Black" GridLines="None" Height="50px" 
    Width="748px" AutoGenerateRows="False" DataKeyNames="id" 
    DataSourceID="SqlDataSource1">
        <FooterStyle BackColor="Tan" />
        <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
            HorizontalAlign="Center" />
        <Fields>
            <asp:BoundField DataField="id" HeaderText="编号" ReadOnly="True" 
                SortExpression="id" />
            <asp:BoundField DataField="title" HeaderText="题目" SortExpression="title" />
            <asp:BoundField DataField="author" HeaderText="作者" SortExpression="author" />
            <asp:BoundField DataField="addtime" HeaderText="发布时间" 
                SortExpression="addtime" />
            <asp:BoundField DataField="content" HeaderText="内容" SortExpression="content" />
            <asp:BoundField DataField="hits" HeaderText="点击率" SortExpression="hits" />
            <asp:CommandField HeaderText="操作" ShowDeleteButton="True" ShowEditButton="True" 
                ShowHeader="True" />
        </Fields>
        <HeaderStyle BackColor="Tan" Font-Bold="True" />
        <EditRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
        <AlternatingRowStyle BackColor="PaleGoldenrod" />
    </asp:DetailsView></center> 
    <br />
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:yutian66 %>" 
    DeleteCommand="delete from paper where id=@sqlid" 
    SelectCommand="select * from paper where id=@id" 
    UpdateCommand="update paper set id=@id,title=@title,author=@author,hits=@hits,note=@note,content=@content where id=@sqlid">
        <SelectParameters>
            <asp:QueryStringParameter Name="id" QueryStringField="id" />
        </SelectParameters>
        <DeleteParameters>
            <asp:ControlParameter ControlID="DetailsView1" Name="sqlid" 
                PropertyName="SelectedValue" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:ControlParameter ControlID="DetailsView1" Name="id" 
                PropertyName="SelectedValue" />
            <asp:ControlParameter ControlID="DetailsView1" Name="title" 
                PropertyName="SelectedValue" />
            <asp:ControlParameter ControlID="DetailsView1" Name="author" 
                PropertyName="SelectedValue" />
            <asp:ControlParameter ControlID="DetailsView1" Name="hits" 
                PropertyName="SelectedValue" />
            <asp:ControlParameter ControlID="DetailsView1" Name="note" 
                PropertyName="SelectedValue" />
            <asp:ControlParameter ControlID="DetailsView1" Name="content" 
                PropertyName="SelectedValue" />
            <asp:ControlParameter ControlID="DetailsView1" Name="sqlid" 
                PropertyName="SelectedValue" />
        </UpdateParameters>
        
</asp:SqlDataSource>
</asp:Content>
后面还有 1 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。