Web/admin/notices/Add.aspx.cs
(完整代码) 982Busing System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Data.SqlClient;
using System.Data;
public partial class notices_Add : System.Web.UI.Page
{
UBW.BLL.notices bll = new UBW.BLL.notices();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
}
}
/// <summary>
/// 添加
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
UBW.Model.notices model = new UBW.Model.notices();
model.title = txt_title.Text;
model.memo = elm1.Value;
model.addtime = DateTime.Now.ToString();
bll.Insert(model);
Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "<script>alert('操作成功,请返回!');location.href='add.aspx';</script>");
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。