SenBiTeSolution.UI/ManageWeb/AboutMe.aspx.cs

(开头部分) 1KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using SenBiTeSolution.Common;
using SenBiTeSolution.DAL;

namespace SenBiTeSolution.UI.ManageWeb
{
    public partial class AboutMe : BasePage
    {
        protected string aboutMe = "";

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindDetail();
            }
        }

        protected void BindDetail()
        {
            tbl_CompanyDetail companyDetail = new tbl_CompanyDetail();
            aboutMe=companyDetail.GetCompanyDetail("MainContent");
        }

        protected void btn_Submit_Click(object sender, EventArgs e)
        {
            string content = Request.Form["textcontent"].Trim();

            //if (string.IsNullOrEmpty(content))
            //{
            //    MessageBox.Show(this.Page, "不允许为空!");
            //    return;
            //}

            tbl_CompanyDetail companyDetail = new tbl_CompanyDetail();

            if (!companyDetail.Exists())
            {
                int rows=companyDetail.AddCompany("MainContent", content);
                if (rows>0)
                {
                    MessageBox.Show(this.Page, "操作成功!");
                    BindDetail();
                }
                else
                {
                    MessageBox.Show(this.Page, "操作失败!");
                }
            }
            else
            {
                int rows=companyDetail.UpdateCompany("MainContent", content);
                if (rows > 0)
                {
后面还有 11 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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