login2.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
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;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class login : System.Web.UI.Page
{
public string username;
public string password;
public string strpwd;
SqlConnection conn = DB.getcon();
protected void Page_Load(object sender, EventArgs e)
{
this.kefang();
Session["huiyuan"] = null;
Session["name"] = null;
Session["dj"] = null;
}
public void kefang()
{
SqlConnection con = DB.getcon();
DataSet ds = new DataSet();
SqlDataAdapter sda = new SqlDataAdapter("select top 4 * from house", con);
sda.Fill(ds, "mclass");
// this.XRepeater.DataSource = ds.Tables["mclass"].DefaultView;
// this.XRepeater.DataBind();
}
protected void Button1_Click(object sender, EventArgs e)
{
username = TextBox1.Text;
password = TextBox2.Text;
strpwd = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(password.Trim(), "md5").ToString().ToLower().Substring(8, 16);
int a = int.Parse(RadioButtonList1.SelectedValue);
if (username == String.Empty || password == String.Empty)
{
Response.Write("<script>");
Response.Write("alert('管理名/密码 不能为空!!!');");
Response.Write("</script>");
return;
}
else
{
if (a == 1)
{
this.getcom(1);
}
if (a == 2)
{
this.getcom(2);
}
后面还有 75 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。