reg.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Collections.Generic;
//该源码下载自www.51aspx.com(51aspx.com)
public partial class reg : System.Web.UI.Page
{
private const string sql = "insert into login values(@UserName,@Password,@Email,@Phone,@Address)";
private const string userName = "@UserName";
private const string passWord = "@Password";
private const string email = "@Email";
private const string phone = "@Phone";
private const string address = "@Address";
protected void Page_Load(object sender, EventArgs e)
{
}
private SqlParameter[] getParam()
{
SqlParameter[] param = SqlHelp.GetCachedParameters(sql);
if (param == null)
{
param = new SqlParameter[] { new SqlParameter(userName,SqlDbType.VarChar,20),
new SqlParameter(passWord,SqlDbType.VarChar,20),
new SqlParameter(email,SqlDbType.VarChar,50),
new SqlParameter(phone,SqlDbType.VarChar,12),
new SqlParameter(address,SqlDbType.VarChar,20)
};
SqlHelp.CacheParameters(sql, param);
}
return param;
}
private bool regMember(IList<string> list)
{
SqlParameter[] param = getParam();
param[0].Value = list[0].ToString();
param[1].Value = list[1].ToString();
param[2].Value = list[1].ToString();
param[3].Value = list[1].ToString();
param[4].Value = list[1].ToString();
bool flag = Convert.ToBoolean(SqlHelp.getExecuteNonQuery(SqlHelp.con,CommandType.Text,sql,param));
return flag;
}
protected void btnreg_Click(object sender, EventArgs e)
{
if (Page.IsValid)
{
IList<string> list = new List<string>();
list.Add(this.txtUserName.Text.Trim());
list.Add(this.txtPassword.Text.Trim());
list.Add(this.txtEmail.Text.Trim());
后面还有 10 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
