Conctrl/AddLiuYan.ascx.cs

(完整代码) 1KB

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;
using JD.Model;
using JD.BLL;

public partial class Conctrl_AddLiuYan : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        if (TextBox6.Text == "")
        {
            Response.Write("<script>alert('内容不能为空');location.href='addliuyan.aspx';</script>");
            return;
        }
        if (TextBox1.Text == "")
        {
            Response.Write("<script>alert('昵称不能为空');location.href='addliuyan.aspx';</script>");
            return;
        }
        LiuYan l = new LiuYan();
        l.Mail = TextBox5.Text;
        l.Qq = TextBox3.Text;
        l.Name = TextBox1.Text;
        l.Neirong = TextBox6.Text;
        l.Intime = DateTime.Now;
        try
        {
            LiuYanMananger.AddLiuYan(l);
            Response.Redirect("LiuYanChengGong.aspx");
        }
        catch (Exception ex)
        {
            throw new Exception(ex.Message);
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。