NoteBook.aspx.cs
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:1k
- 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;
- public partial class NoteBook : System.Web.UI.Page
- {
- Model.Users nc_Users = new Model.Users();
- BLL.Users bll_Users = new BLL.Users();
- protected void Page_Load(object sender, EventArgs e)
- {
- LoginLogic.MatchLoad("../", "NoteBook");
- if (!IsPostBack)
- {
- int IdNum = int.Parse(SessionInclude.Id);
- nc_Users = bll_Users.GetModel(IdNum);
- Model.Users MU = new BLL.Users().GetPageList(1, 1, "ID", false, "UserId='" + SessionInclude.SessionId + "'")[0];
- KeyValue_OutSiteViewMail.Text = MU.Note;
- }
- }
- public void LoadSet()
- {
- try
- {
-
- int IdNum = int.Parse(SessionInclude.Id);
- nc_Users = bll_Users.GetModel(IdNum);
- nc_Users.Note = KeyValue_OutSiteViewMail.Text;
- bll_Users.Update(nc_Users);
- MessageBox.Show("保存成功!");
- }
- catch(Exception exp)
- {
-
- MessageBox.Show(exp.Message);
- }
- }
- protected void Button1_Click(object sender, EventArgs e)
- {
-
- LoadSet();
-
- }
- }