Reg.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Reg : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnOK_Click(object sender, ImageClickEventArgs e)
{
try
{
//判断Cookie是否为空如果为空说明浏览器禁用了Cookie
if (Request.Cookies["CheckCode"] == null)
{
MessageBox.Show(this.Page, "您的浏览器设置已被禁用Cookies,请设置浏览器允许使用Cookies后使用本系统!");
}
//判断验证码与用户输入的是否相同
if (string.Compare(Request.Cookies["CheckCode"].Value.ToLower(), auth_code.Text.ToLower()) != 0)
{
MessageBox.errorShow(this.Page, "验证码错误,请输入正确的验证码!");
auth_code.Text = "";
return;
}
//判断身份证图片是否上传
//if (ImgUrl1.Value == "")
//{
// MessageBox.errorShow(this.Page, "请上传身份证图片!");
// return;
//}
//判断驾驶证图片是否上传
//if (ImgUrlb1.Value == "")
//{
// MessageBox.errorShow(this.Page, "请上传驾驶证图片!");
// return;
//}
U_User my = new U_User();
my.JZLX = this.DropJZLX.SelectedValue;
my.UserName = this.txtUserName.Text;
my.PassWord = this.txtPassWord2.Text;
my.Name = this.txtName.Text;
my.Tel = this.txtTel.Text;
my.QQ = this.txtQQ.Text;
my.SHZ = this.txtSHZ.Text;
my.SHZimg = ImgUrl1.Value;
my.JSZimg = ImgUrlb1.Value;
my.JSZ = this.txtJSZ.Text;
my. ISSH=0;
my.DJR = "";
my.ZCtime = DateTime.Now;
my.Add();
MessageBox.ShowAndRedirect(this.Page, "注册成功!", "Login.aspx");
}
catch (Exception ex)
{
后面还有 4 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。