WELOA.Web/yw/guestbook_manage.aspx.cs

(开头部分) 9KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using WELOA.Model;
using LSBLL;
using System.IO;

namespace Web.yw
{
    public partial class guestbook_manage : System.Web.UI.Page
    {
      
        private DataSet ds = null;
        private DateSetInformation dsinfo = null;
      
        private LS_Login_Guestbook GuestbookBLL = new LS_Login_Guestbook();
       
        private LS_Permission permissionBLL = new LS_Permission();
        private int Record_Per_Page = 10;
       
        private LS_Staff staffBLL = new LS_Staff();
        private string[] strStaff;
       

        
        protected void Button2_Click(object sender, EventArgs e)
        {
            int id = Convert.ToInt32(this.lbEditId.Text);
            string text = this.tbEditNeirong.Text;
            this.strStaff = this.staff();
            Polytechnic Polytechnic = this.GuestbookBLL.updateguestbook(id, text, this.strStaff[1], this.strStaff[0]);
            if (Polytechnic.nException > 0)
            {
                this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('回复留言异常。')</script>");
            }
            else
            {
                this.tbEditNeirong.Text = "";
                this.viewList();
                this.EditLiuyan.Visible = false;
                this.GuestbookList.Visible = true;
                if (Polytechnic.rowsnum > 0)
                {
                    this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('回复成功。')</script>");
                }
                else
                {
                    this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('未回复。')</script>");
                }
            }
        }

        protected void ddlDepartment_TextChanged(object sender, EventArgs e)
        {
            this.viewList();
        }
后面还有 162 行代码,解锁后查看完整代码

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

AI 解读

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

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