Web/MessInfo.aspx.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Web.UI;
using System.Web.UI.HtmlControls;

namespace Maticsoft.Web
{
    public partial class MessInfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            HtmlHead();
        }

        private void Clear()
        {
            txtContent.Text = string.Empty;
            txtEmail.Text = string.Empty;
            txtMessTitle.Text = string.Empty;
            txtPhone.Text = string.Empty;
            txtWrite.Text = string.Empty;
        }

        private bool Cheack()
        {
            if (string.IsNullOrEmpty(txtMessTitle.Text.Trim()))
            {
                lblInfo.Text = "请填写留言名称!";
                txtMessTitle.Focus();
                return false;
            }
            if (string.IsNullOrEmpty(txtWrite.Text.Trim()))
            {
                lblInfo.Text = "请填写留言人!";
                txtWrite.Focus();
                return false;
            }
            if (string.IsNullOrEmpty(txtPhone.Text.Trim()))
            {
                lblInfo.Text = "请填写联系电话!";
                txtPhone.Focus();
                return false;
            }
            if (string.IsNullOrEmpty(txtContent.Text.Trim()))
            {
                lblInfo.Text = "请填写留言内容!";
                txtContent.Focus();
                return false;
            }
            return true;
        }

        protected void btnSave_Click(object sender, EventArgs e)
        {
            if (Cheack() == false)
            {
                return;
            }
            Maticsoft.BLL.MessageInfo mBll = new Maticsoft.BLL.MessageInfo();
            Maticsoft.Model.MessageInfo MModel = new Maticsoft.Model.MessageInfo();
            MModel.E_CompanyName = txtCompany.Text.Trim();
后面还有 39 行代码,购买后查看完整代码

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

AI 解读

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

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