Backup/Web/Client/VipUpdateQAndA.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
namespace MrZeng.Web.Client
{
public partial class VipUpdateQAndA : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Session["VipNum"] != null)
{
QuedtionAndAnswerBind(Session["VipNum"].ToString());
}
else
{
MrZeng.BLL.Common.ClientWrite("parent.window.location=\"Default.aspx\"");
}
}
}
/// <summary>
/// 密码保护问题及答案绑定
/// </summary>
private void QuedtionAndAnswerBind(string VipNum)
{
MrZeng.BLL.P_VIPInfo bll = new MrZeng.BLL.P_VIPInfo();
MrZeng.Model.P_VIPInfo model = bll.GetModel(VipNum);
Question.Text = model.Questions;
Answers.Text = model.Answers;
}
/// <summary>
/// 确定事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ImageBtnOK_Click(object sender, ImageClickEventArgs e)
{
string VipNum=Session["VipNum"].ToString();
string Question=this.Question.Text.Trim();
string Answer=this.Answers.Text.Trim();
MrZeng.BLL.P_VIPInfo bll = new MrZeng.BLL.P_VIPInfo();
bll.UpdateQuestionAndAnswers(VipNum, Question, Answer);
MrZeng.BLL.Common.Alert("恭喜你,密码保护问题及答案已成功修改!");
MrZeng.BLL.Common.ClientWrite("parent.window.location=\"VipCenter.aspx\"");
}
/// <summary>
/// 取消事件
/// </summary>
后面还有 8 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
