Song.Site/Mobile/SelfEdit.ashx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WeiSha.Common;
using Song.ServiceInterfaces;
using VTemplate.Engine;

namespace Song.Site.Mobile
{
    /// <summary>
    /// SelfEdit 的摘要说明
    /// </summary>
    public class SelfEdit : BasePage
    {
        //学员姓名,性别,安全问题与答案
        protected string name = WeiSha.Common.Request.Form["tbName"].String;
        protected int sex = WeiSha.Common.Request.Form["tbSex"].Int16 ?? 0;
        protected string qus = WeiSha.Common.Request.Form["tbQus"].String;
        protected string answer = WeiSha.Common.Request.Form["tbAnwser"].String;
        protected override void InitPageTemplate(HttpContext context)
        {
            if (!Extend.LoginState.Student.IsLogin)
                this.Response.Redirect("Entry.ashx");

            //
            if (!string.IsNullOrWhiteSpace(name))
            {
                Song.Entities.Student st = Extend.LoginState.Student.CurrentUser;
                st.St_Name = name;
                st.St_Sex = sex;
                st.St_Qus = qus;
                st.St_Anwser = answer;
                Business.Do<IStudent>().StudentSave(st);

                this.Response.Redirect("SelfInfo.ashx");
            }
        }
    }
}

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

AI 解读

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

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