麻烦详解一下下面 C# 代码的意思
stringname,sex,pwd,realname,mobilephone,address,postcode,email;name=txtName.Text.Trin...
string name,sex,pwd,realname,mobilephone,address,postcode,email;name=txtName.Text.Trin();pwd=txtPWD1.Text;sex=dllSex.SelectedValue;realname=txtMobilePhone.Text.Trin();mobilephone=txtMobilePhone.Text.Trim();address=txtAddress.Text.Trim();postcode=txtPostCode.Text.Trim();email=txtEmail.Text.Trm();string sq10="insert into tb_Member(MemberName,MemberPwd,Sex,RealName,MobileTel,Email,Address,Code)values('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}')";string sql=string.Format(sq10,name,pwd,sex,realname,mobilephone,email,address,postcode); SqlConnection conn=newSqlConnection(ConfigurationManager.AppSettings["connstr"]); SqlCommand cmd =new SqlCommand(sql,conn); conn.Open(); cmd.ExecuteNonQuery(); conn.Close(); Respomse.Write("
7e9e6e4e9e6e1e0会的邮箱联系,这里复制粘贴就变的很乱 展开
7e9e6e4e9e6e1e0会的邮箱联系,这里复制粘贴就变的很乱 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询