MyManage/MyMessage.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;
public partial class MyManage_MyMessage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Request.Cookies["roleid"] != null)
{
Authority myauthority = new Authority();
int RoleID = Convert.ToInt16(Server.HtmlEncode(Request.Cookies["roleid"].Value));
int ModuleID = 8;
if (myauthority.QXExists(RoleID, ModuleID))
{
// 下载于www.51aspx.com
if (!IsPostBack)
{
User myU = new User();
myU.GetModel(Convert.ToInt16(Server.HtmlEncode(Request.Cookies["userid"].Value)));
this.Label1.Text = myU.Name;
this.txtphone.Text = myU.Telephone;
Role myrole = new Role();
myrole.GetModel(Convert.ToInt16(myU.RoleID));
this.Label3.Text = myrole.PoleName;
Class myc = new Class();
myc.GetModel(Convert.ToInt16(myU.ClassID));
this.Label4.Text = myc.CName;
}
}
else
{
MessageBox.ShowAndRedirect(this.Page, "对不起!您无权操作此版块。", "../Main.aspx");
}
}
else
{
MessageBox.ShowAndRedirect(this.Page, "对不起!您还没有登录系统。", "../Logout.aspx");
}
}
protected void butAdd_Click(object sender, ImageClickEventArgs e)
{
User myU = new User();
myU.Telephone = txtphone.Text;
myU.UpdateT(Convert.ToInt16(Server.HtmlEncode(Request.Cookies["userid"].Value)));
MessageBox.succeedShow(this.Page, "个人信息保存成功!");
}
后面还有 2 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
