Register.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
public partial class Register : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button_Reg_Click(object sender, EventArgs e)
{
string safecode = TextBox_safecode.Text;
string vcode = Session["safecode"].ToString();
string UserName = TextBox_UserName.Text;
try
{
User myuser = new User();
if (!myuser.ExistsU(UserName))
{
if (safecode == vcode)
{
myuser.UserName = TextBox_UserName.Text;
myuser.PassWord = TextBox_QRPwd.Text;
myuser.Name = TextBox_Name.Text;
myuser.Telephone = TextBox_Telephone.Text;
myuser.Mobile = TextBox_Mobile.Text;
myuser.Sex = RadioButtonListSEX.SelectedValue;
myuser.QQ = TextBox_QQ.Text;
myuser.Email = TextBox_Email.Text;
myuser.Company = TextBox_Company.Text;
myuser.YyzzUrl = TextBox_XYDM.Text;//机构信用代码
myuser.Organize = TextBox_Organize.Text;
myuser.Area = DropDownList_Area.SelectedValue;
myuser.CLTime = Convert.ToDateTime(TextBox_CLTime.Value);
myuser.Address = TextBox_Address.Text;
myuser.Capital = TextBox_Capital.Text;
myuser.CEO = TextBox_CEO.Text;
myuser.Staff = DropDownList_Staff.SelectedValue;
myuser.Synopsis = TextBox_Synopsis.Text;
myuser.ISSH = 0;
myuser.PIC = "image/none.gif";
myuser.Groups = "企业会员";
myuser.Add();
MessageBox.ShowAndRedirect(this.Page, "注册成功!", "Index.aspx");
}
else
{
Literal1.Text = "验证码错误!";
Literal2.Text = "";
TextBox_safecode.Text = "";
}
}
else
{
Literal2.Text = "您输入的用户名已注册!";
}
}
catch (Exception ex)
后面还有 5 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。