⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 includefileclass.aspx

📁 如果不使用IIS,请先运行 XSP.exe,待提示已侦听 8080端口后
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="IncludeFileClass.aspx.cs" Inherits="Manage_IncludeFileClass" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/css_admin.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 800px;
        }
        .style2
        {
        }
        .style3
        {
        }
        .style4
        {
            width: 251px;
        }
        .style5
        {
            width: 264px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    
    <table class="style1 table_3d ">
        <tr>
            <td class="style4">
                分类名称<asp:TextBox ID="txtIncludeFileClass" runat="server" Width="194px"></asp:TextBox>
                </td>
            <td class="style5">
                分类英文名<asp:TextBox ID="txtEName" runat="server" Width="169px"></asp:TextBox>
            </td>
            <td class="style3">
                <asp:Button ID="btnAddClass" runat="server" Text="新增分类" 
                    onclick="btnAddClass_Click" />
                <asp:Label ID="lblerr" runat="server" EnableViewState="false"  ></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style2" colspan="3">
                <asp:GridView ID="grdIncludeFileClass" runat="server" CssClass="table_3d" 
                    AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="Id" 
                    onpageindexchanging="grdIncludeFileClass_PageIndexChanging" 
                    onrowdeleting="grdIncludeFileClass_RowDeleting" 
                    onrowcancelingedit="grdIncludeFileClass_RowCancelingEdit" 
                    onrowediting="grdIncludeFileClass_RowEditing" 
                    onrowupdating="grdIncludeFileClass_RowUpdating" >
                    <Columns>
                        <asp:BoundField DataField="Id" HeaderText="Id" ReadOnly="True" />
                        <asp:BoundField DataField="ClassName" HeaderText="分类名称" />
                        <asp:BoundField DataField="EName" HeaderText="英文名称" />
                        <asp:CommandField ShowEditButton="True" />
                        <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                    CommandName="Delete"  
                                    
                                    Text="删除" OnClientClick="return confirm('确定删除?')" ></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        没有找到分类
                    </EmptyDataTemplate>
                </asp:GridView>
            </td>
        </tr>
    </table>
    
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -