系统源代码
一、登录界面代码
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class login : System.Web.UI.Page
{
protected void txtid_Click(object sender, EventArgs e)
{
txtid.Text = "";
txtpassword.Text = "";
}
protected void Button1_Click(object sender, EventArgs e)
{
string strconn = ConfigurationManager.AppSettings["connStr"];
SqlConnection conn = new SqlConnection(strconn);
conn.Open();
DataSet
ds=new DataSet
() ;
SqlDataAdapter da = new SqlDataAdapter("select * from users where userid='" +
txtid.Text
+ "' and userpwd='" + txtpassword.Text + "'", conn);
更多推荐
学生学籍管理系统页面源代码html_学生信息管理系统-系统源代码
发布评论