userreg.aspx.cs

(开头部分) 3KB

这里只显示每个文件的开头 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.Text;

public partial class userreg : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            xingbie.Items.Add("男");
            xingbie.Items.Add("女");
        }
    }
    protected void Button2_Click(object sender, EventArgs e)
    {


        StringBuilder strSql = new StringBuilder();
        StringBuilder strSql1 = new StringBuilder();
        StringBuilder strSql2 = new StringBuilder();
        if (this.yonghuming.Text.ToString() != null)
        {
            strSql1.Append("MUserName,");
            strSql2.Append("'" + this.yonghuming.Text.ToString() + "',");
        }
        if (this.mima.Text.ToString() != null)
        {
            strSql1.Append("MPwd,");
            strSql2.Append("'" + mima.Text.ToString() + "',");
        }
        if (this.xingming.Text.ToString() != null)
        {
            strSql1.Append("MName,");
            strSql2.Append("'" + xingming.Text.ToString() + "',");
        }
        if (this.dianhua.Text.ToString() != null)
        {
            strSql1.Append("MTel,");
            strSql2.Append("'" + dianhua.Text.ToString() + "',");
        }
        if (youxiang.Text.ToString() != null)
        {
            strSql1.Append("MEmail,");
            strSql2.Append("'" + youxiang.Text.ToString() + "',");
        }
        if (this.QQ.Text.ToString()!= null)
        {
            strSql1.Append("MQQ,");
            strSql2.Append("'" + QQ.Text.ToString() + "',");
        }
        if (this.jiguan.Text.ToString() != null)
后面还有 39 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。