📄 styleclass_add.aspx.cs
字号:
///************************************************************************************************************
///**********添加样式分类Code By DengXi************************************************************************
///************************************************************************************************************
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class manage_label_styleclass_add : NetCMS.Web.UI.ManagePage
{
public manage_label_styleclass_add()
{
Authority_Code = "T019";
}
protected void Page_Load(object sender, EventArgs e)
{
Response.CacheControl = "no-cache"; //设置页面无缓存
if (!IsPostBack)
{
copyright.InnerHtml = CopyRight; //获取版权信息
}
}
/// <summary>
/// 保存分类
/// </summary>
/// <returns>保存分类</returns>
/// 编写时间2007-04-20 Code By DengXi
protected void Button1_Click(object sender, EventArgs e)
{
if (Page.IsValid)
{
int result = 0;
NetCMS.Model.StyleClassInfo stClass= new NetCMS.Model.StyleClassInfo();
stClass.Sname = styleClassName.Text;
stClass.CreatTime = DateTime.Now;
stClass.isRecyle = 0;
NetCMS.Content.Style.Style stcClass = new NetCMS.Content.Style.Style();
result = stcClass.sytleClassAdd(stClass);
if (result==1)
PageRight("添加分类成功!", "style.aspx");
else
PageError("添加分类失败!", "");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -