C2C.Web/user/lgoin.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace C2C.Web.user
{
    public partial class lgoin1 : System.Web.UI.Page
    {
        BLL.pubuser bllUser = new BLL.pubuser();
        protected string url = "";
        protected string str = "";
        protected void Page_Load(object sender, EventArgs e)
        {

            if (!IsPostBack)
            {
                if (Request.UrlReferrer != null)
                {
                    if (!string.IsNullOrEmpty(Request.UrlReferrer.AbsoluteUri))
                    {
                        url = Request.UrlReferrer.AbsoluteUri.Substring(Request.UrlReferrer.AbsoluteUri.LastIndexOf("/"));

                        url = url.Split('?')[0];

                        ViewState["url"] = url;

                    }
                }


                if (!string.IsNullOrEmpty(Request["str"]))
                {
                    str = Request["str"];
                    ViewState["str"] = str;
                }
            }
           
        }

        protected void txtLogin_Click(object sender, EventArgs e)
        {
            try
            {

                if (this.txtUserName.Text == "" || this.txtPassWord.Text == "")
                {
                 Common.MessageBox.ShowIndex(this, "账号或密码不能为空");
                    return;
                }

                if (this.txtCode.Text.ToUpper() != Session["ValidCode"].ToString().ToUpper())
                {
                    Common.MessageBox.ShowIndex(this, "验证码不正确");
                    return;
                }

                Model.pubuser modelUser = bllUser.GetModelByName(this.txtUserName.Text);
后面还有 63 行代码,购买后查看完整代码

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

AI 解读

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

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