双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

100分求助,过程或函数 'InsertUserToAccount' 需要参数 '@nvrRealName',但未提供该参数。

K11路 K11路 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区



using System;
using System.Collections;
using System.Configuration;
using System.Data;
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.Data.SqlClient;

public partial class NormalReigister : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//SqlInject myCheck = new SqlInject(this.Request);
//myCheck.CheckSqlInject();
if (!IsPostBack)
{
imagValide.Attributes.Add("onclick", "this.src=this.src");
imagValide.Attributes.Add("onclick", "cursor:hand;");
this.imgValidName.Visible = false;
this.imgcardTips.Visible = false;
}
}


/// <summary>
/// 判断用户名是否存在
/// </summary>
/// <returns></returns>
//protected bool IsUNameExist()
//{
// if (this.userName0.Text.Trim()!= string.Empty)
// {
// return PublicCS.GetuserName0Exist(this.userName0.Text.Trim());
// }
// //else
// //{

// // //this.imgValidName.ImageUrl = "~/new_images/wrong_icon.png";
// // //this.lblTips.Text = "请输入您的游戏账号";
// // return false;
// //}
//}

/// <summary>
/// 注册信息提交
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void imagOK_Click(object sender, ImageClickEventArgs e)
{

if (string.Compare(Request.Cookies["cmpcode"].Value, txtValide.Text, true) != 0)
{
Page.RegisterStartupScript("ok", "<script>alert('你输入的验证码有误,请重新输入!" +Request.Cookies["cmpcode"].Value + "');</script>");
// PublicCS.ShowMsg("你输入的验证码有误,请重新输入!" + Request.Cookies["cmpcode"].Value, this.Page);
return;
}
if (PublicCS.exist(PublicCS.getGameUserConn(), "[dbo].[AccountsInfo]", "Accounts", userName0.Text))
{
SqlConnection con = PublicCS.getGameUserConn();
//游戏用户
SqlCommand cmd = new SqlCommand("[dbo].[InsertUserToAccount]", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@Accounts", SqlDbType.VarChar).Value = userName0.Text.Trim();//账号
cmd.Parameters.Add("@RegAccounts", SqlDbType.VarChar).Value = userName0.Text.Trim();//确认账号
cmd.Parameters.Add("@LogonPass", SqlDbType.VarChar).Value = FormsAuthentication.HashPasswordForStoringInConfigFile(iPassword.Text.Trim(), "MD5");//密码
cmd.Parameters.Add("@InsurePass", SqlDbType.VarChar).Value = FormsAuthentication.HashPasswordForStoringInConfigFile(rePassword.Text.Trim(), "MD5");//确认密码

cmd.Parameters.Add("@Gender", SqlDbType.Bit).Value = this.ddlSex.SelectedIndex;//性别(0:男,1:女)
cmd.Parameters.Add("@RegisterIP", SqlDbType.VarChar).Value = Request.UserHostAddress;//注册IP
cmd.Parameters.Add("@LastLogonIP", SqlDbType.VarChar).Value = Request.UserHostAddress;//最后登录IP
/*2010-7-22添加三个新字段*/
cmd.Parameters.Add("@Email", SqlDbType.NVarChar).Value = txtEmail.Text.Trim();//邮箱
cmd.Parameters.Add("@MobilePhone", SqlDbType.NVarChar).Value = telephone.Text.Trim();//手机号码
cmd.Parameters.Add("@IDCard", SqlDbType.NVarChar).Value = paper.Text.Trim();//身份证号

//cmd.Parameters.Add("FaceID", SqlDbType.Int).Value = ddl_headno.SelectedIndex + 1;
try
{
con.Open();
cmd.ExecuteNonQuery();

}
catch (SqlException se2)
{

throw se2;
}
finally
{
...全文

相关推荐

评论 11
收藏 已收藏
分享
返回顶部
K11路
.NET社区 62,274 成员 668,968 内容