asp二手交易网课程设计报告(编辑修改稿)内容摘要:

39。 /script)。 return。 } else { string name =。 string password =。 string constr = server=.。 database=shopdb。 trusted_connection=true。 SqlConnection conn = new SqlConnection(constr)。 ()。 SqlCommand cmd = new SqlCommand()。 = select count(*) from users where UserName=39。 + name + 39。 and Password=39。 + + 39。 = conn。 //int count = (int)()。 if ((()) 0) { Session[UserLoginName] =。 ()。 (?UserLoginName= + )。 } else { (scriptalert(39。 用户名 或密码错误。 39。 )/script)。 return。 } ()。 } } } } 注册后台代码 using System。 using。 using。 using。 using。 using。 using。 using。 public partial class Admin_images_addusers : { protected void Page_Load(object sender, EventArgs e) { if (Session[UserLoginName ] == null) { } else { string name = Session[UserLoginName ].ToString()。 (?sname= + Session[UserLoginName ].ToString())。 } } protected void Button1_Click(object sender, EventArgs e) { string constr = server=.。 database=shopdb。 trusted_connection=true。 SqlConnection con = new SqlConnection(constr)。 SqlCommand cmd = new SqlCommand(praddusers, con)。 = con。 = praddusers。 =。 SqlParameter sp1 = new SqlParameter(@username, , 20)。 = @username。 =。 (sp1)。 SqlParameter sp2 = new SqlParameter(@password, , 20)。 = @password。 =。 (sp2)。 SqlParameter sp3 = new SqlParameter(@realname, , 20)。 = @realname。 =。 (sp3)。 SqlParameter sp4 = new SqlParameter(@sex, )。 = @sex。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。