string cmdText = "";
#region 构造SQL 查询语句
cmdText += "[PROC_AddNewRegUser]";
#endregion
sqlConnection dbconn = dbconnection.Instance;
sqlCommand dbcmd = new sqlcommand(cmdText, dbconn);
dbcmd.CommandType = CommandType.StoredProcedure;
//设置用户名称
dbcmd.Parameters.add(new sqlParameter("@UserName", SqlDbType.NVarChar,20));
dbcmd.Parameters["@UserName"].value = newRegUser.UserName;
//用户密码
dbcmd.Parameters.add(new sqlParameter("@password", SqlDbType.NVarChar, 128));
dbcmd.Parameters["@password"].value = md5Pwd;
红色字部分的我都不太明白啊````有没哪个高手指点指点```?
还例如value = newRegUser.UserName 里的UserName是什么来的是否我TEXTBOX里的用户名?