#在aspx文件中# #在文本框显示提示内容# placeholder="请输入内容" #将输入的字符变成密码状态# textmode="password" #控制gridview让它不自动添加# AutoGenerateColumns="false"
#在aspx.cs文件中# #导入连接sqlsever的包# using System.Data.SqlClient; using System.Data; #连接语句# SqlConnection sqlconn = new SqlConnection("server=S404-38\\SQLEXPRESS;uid=sa;pwd=1;database=libnew"); string sqltext = "select id,pw from gl where id='" + id + "'and pw ='" + pw + "'"; SqlCommand cmd = new SqlCommand(sqltext,sqlconn)
时间原因暂时如此,懒癌犯了。难受