SenBiTeSolution.UI/ManageWeb/AddConfigs.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SenBiTeSolution.DAL;
using SenBiTeSolution.Common;
namespace SenBiTeSolution.UI.ManageWeb
{
public partial class AddConfigs : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
//提交
protected void btn_AddNews_Click(object sender, EventArgs e)
{
string newsTitle = txt_NewsTitle.Text.Trim();
string text = this.txt_value.Text.Trim();
//if (string.IsNullOrEmpty(newsTitle))
//{
// MessageBox.Show(this, "标题不可以为空!");
// return;
//}
//if (string.IsNullOrEmpty(text))
//{
// MessageBox.Show(this, "新闻内容不可以为空!");
// return;
//}
SenBiTeSolution.DAL.tbl_Configs news = new SenBiTeSolution.DAL.tbl_Configs();
SenBiTeSolution.Model.tbl_Configs newsModel = new SenBiTeSolution.Model.tbl_Configs();
newsModel = news.GetConfigsModel(newsTitle, text);
int rows = news.AddConfigs(newsModel);
if (rows > 0)
{
MessageBox.Show(this, "添加成功!");
}
else
{
MessageBox.Show(this, "添加失败!");
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。