admin/msg_type.aspx
(完整代码) 2KB<%@ Page Language="C#" MasterPageFile="~/admin/MasterPage.master" AutoEventWireup="true" CodeFile="msg_type.aspx.cs" Inherits="admin_msg_type" Title="类别管理" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:DetailsView ID="DetailsView1" runat="server" AllowPaging="True"
AutoGenerateRows="False" BackColor="LightGoldenrodYellow" BorderColor="Tan"
BorderWidth="1px" CellPadding="2" DataKeyNames="id"
DataSourceID="SqlDataSource1" ForeColor="Black" GridLines="None" Height="100px"
Width="750px">
<FooterStyle BackColor="Tan" />
<PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue"
HorizontalAlign="Center" />
<Fields>
<asp:BoundField DataField="id" HeaderText="编号" ReadOnly="True"
SortExpression="id" />
<asp:BoundField DataField="type" HeaderText="类型" SortExpression="type" />
<asp:CommandField HeaderText="操作" ShowDeleteButton="True" ShowEditButton="True"
ShowInsertButton="True" />
</Fields>
<HeaderStyle BackColor="Tan" Font-Bold="True" />
<EditRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
<AlternatingRowStyle BackColor="PaleGoldenrod" />
</asp:DetailsView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:yutian66 %>"
DeleteCommand="DELETE FROM [msgtype] WHERE [id] = @sqlid"
InsertCommand="insert into msgtype (id,type) values(@id,@type)"
SelectCommand="select * from msgtype "
UpdateCommand="UPDATE [msgtype] SET [type] =@type WHERE [id] = @id">
<DeleteParameters>
<asp:ControlParameter ControlID="DetailsView1" Name="sqlid"
PropertyName="SelectedValue" />
</DeleteParameters>
<UpdateParameters>
<asp:ControlParameter ControlID="DetailsView1" Name="type"
PropertyName="SelectedValue" />
<asp:ControlParameter ControlID="DetailsView1" Name="id"
PropertyName="SelectedValue" />
</UpdateParameters>
<InsertParameters>
<asp:ControlParameter ControlID="DetailsView1" Name="id"
PropertyName="SelectedValue" />
<asp:ControlParameter ControlID="DetailsView1" Name="type"
PropertyName="SelectedValue" />
</InsertParameters>
</asp:SqlDataSource>
</asp:Content>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。