C#SQL添加问题(急,在线等)
代码SqlConnectionsqlconn=newSqlConnection(@"Server=DHJBJB;IntegratedSecurity=True;Datab...
代码
SqlConnection sqlconn = new SqlConnection(@"Server=DHJBJB;Integrated Security=True;Database=web");
sqlconn.Open();
string sqlinsert = "INSERT INTO user_(uname,pword,enterpassword,mail,safequestion,safeanswer) VALUES('" + CreateUserWizard1.UserName + "','" + CreateUserWizard1.Password + "','" + CreateUserWizard1.ConfirmPassword + "','" + CreateUserWizard1.Email + "','" + CreateUserWizard1.Question + "','" + CreateUserWizard1.Answer + "')";
SqlCommand sc = new SqlCommand(sqlinsert, sqlconn);
sc.ExecuteNonQuery();
sqlconn.Close();
CreateUserWizard1.UserName = "";
注册的时候总提示密码无效时候的文本``怎么办?急 展开
SqlConnection sqlconn = new SqlConnection(@"Server=DHJBJB;Integrated Security=True;Database=web");
sqlconn.Open();
string sqlinsert = "INSERT INTO user_(uname,pword,enterpassword,mail,safequestion,safeanswer) VALUES('" + CreateUserWizard1.UserName + "','" + CreateUserWizard1.Password + "','" + CreateUserWizard1.ConfirmPassword + "','" + CreateUserWizard1.Email + "','" + CreateUserWizard1.Question + "','" + CreateUserWizard1.Answer + "')";
SqlCommand sc = new SqlCommand(sqlinsert, sqlconn);
sc.ExecuteNonQuery();
sqlconn.Close();
CreateUserWizard1.UserName = "";
注册的时候总提示密码无效时候的文本``怎么办?急 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询