Song.Site/Manage/Site/MessageBoard_Ans.aspx.cs
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
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;
using WeiSha.Common;
using Song.ServiceInterfaces;
using Song.Entities;
using WeiSha.WebControl;
using System.Collections.Generic;
namespace Song.Site.Manage.Site
{
public partial class MessageBoard_Ans : Extend.CustomPage
{
//要操作的对象主键
private int id = WeiSha.Common.Request.QueryString["id"].Int32 ?? 0;
//员工上传资料的所有路径
private string _uppath = "Student";
//当前学员id
protected int stid = 0;
//是否为超管
protected bool isAdmin = false;
protected void Page_Load(object sender, EventArgs e)
{
Song.Entities.Student acc = Extend.LoginState.Student.CurrentUser;
stid = acc.St_ID;
isAdmin = false;
if (!this.IsPostBack)
{
_init();
BindData(null, null);
}
}
private void _init()
{
try
{
Song.Entities.Student acc = Extend.LoginState.Student.CurrentUser;
if (id < 1)
{
//如果是新增主题,则显示当前的贴子信息
lbAccName.Text = acc.St_Name;
imgAccPhoto.ImageUrl = Upload.Get[_uppath].Virtual + acc.St_Photo;
//
tableAdd.Visible = true;
this.plMsgList.Visible = false;
btnEnter.Visible = true;
}
else
{
lbCurrName.Text = acc.St_Name;
imbCurrPhoto.ImageUrl = Upload.Get[_uppath].Virtual + acc.St_Photo;
后面还有 215 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
