📄 addcate.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddCate.aspx.cs" Inherits="Web_AddCate" %>
<!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>
</head>
<body>
<form id="form1" runat="server">
<div>
<table border="1" cellpadding="1" cellspacing="1" style="width: 100%">
<tr>
<td style="width: 100px; height: 23px;">
<asp:Label ID="LabName" runat="server" Text="类别名称:"></asp:Label></td>
<td style="width: 100px; height: 23px;">
<asp:TextBox ID="TxbCatename" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px">
<asp:Label ID="Label1" runat="server" Text="类别级别:"></asp:Label></td>
<td style="width: 100px">
<asp:DropDownList ID="DdlLevel" runat="server" Width="150px">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
</asp:DropDownList>
<asp:SqlDataSource ID="SdsCateLevel" runat="server" ConnectionString="<%$ ConnectionStrings:db_KnowledgeConnectionString %>"
SelectCommand="select distinct Category_level from tb_Category order by Category_level">
</asp:SqlDataSource>
</td>
</tr>
<tr>
<td style="width: 100px">
<asp:Label ID="Label2" runat="server" Text="父类别ID:"></asp:Label></td>
<td style="width: 100px">
<asp:DropDownList ID="DdlParent" runat="server" Width="150px">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
</asp:DropDownList>
<asp:SqlDataSource ID="SdsParentId" runat="server"></asp:SqlDataSource>
</td>
</tr>
<tr>
<td style="width: 100px">
</td>
<td style="width: 100px">
<asp:Button ID="BtnAdd" runat="server" OnClick="BtnAdd_Click" Text="添加" />
<asp:Button ID="BtnClose" runat="server" OnClick="BtnClose_Click" Text="关闭" />
<asp:Label ID="LabIsSuccess" runat="server"></asp:Label></td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -