MobilePhoneWeb/siteAdmin/m_Login.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Text;
using COMM;
using conn;
using System.Web.Security;
namespace Thrive.EmbeddedAdminWeb
{
public partial class m_Login : System.Web.UI.Page
{
public string jsString = "";
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
// txt_PassWord.Attributes.Add("value", "123456");
}
}
public void BtnLogin_Click(object sender, EventArgs e)
{
Hp_UserInfo hu = new Hp_UserInfo();
string myLoginPwd = txt_PassWord.Text;
string myUserName = txt_UserName.Text;
hu.LoginUser = txt_UserName.Text;
hu.PassWord = myLoginPwd;
int k = 0;
if (myUserName == "" | myLoginPwd == "")
{
}
else
{
k = hu.GetUserInfo();
}
if (k > 0)
{
MyCookie.setCookie("UserID", k.ToString());
MyCookie.setCookie("LoginUser", txt_UserName.Text);
jsString = "dlg.Msg.Err(\"登录成功,请检查登录帐号或密码是否正确!\");";
Response.Redirect("index.aspx");
}
else
{
//Response.Redirect("m_Login.aspx");
jsString = "dlg.Msg.Err(\"登录失败,请检查登录帐号或密码是否正确!\");";
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。