asp.net 如何连接SQL数据库
来源:百度知道 编辑:UC知道 时间:2024/05/23 18:13:43
强帖终于出现,要顶的啊,谢谢楼主
string ConString="server=.;database=Login;uid=sa;pwd=;";
SqlConnection Con = new SqlConnection(ConString);
Con.Open();
SqlCommand Cmd = new SqlCommand("select count(*) from UserLogin where UserId='" + this.TxbUsername.Text + "'and UserPwd='" + FormsAuthentication.HashPasswordForStoringInConfigFile( this.TxbUserPwd.Text,"sha1") + "'", Con);
________________________________________________________________________________
asp.net(C#)QQ群:20131616,欢迎以助人为乐的朋友们加入,无论你是初学还是已经入门,我们一直在努力一直在进步!