freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

數據庫圖書管理系統課程設計(編輯修改稿)

2025-06-19 06:09 本頁面
 

【文章內容簡介】 selectstr=select BookImage,BookName,Price,DiscountMoney from BookInfo,BookCatalog where = and CatalogName=39。+Session[BookClassify].ToString()+ 39。 } else if (Session[flag] == 作者 ) { selectstr=select BookImage,BookName,Price,DiscountMoney from BookInfo where Author=39。+Session[Search].ToString()+ 39。 } else selectstr=select BookImage,BookName,Price,DiscountMoney from BookInfo where BookName=39。+Session[Search].ToString()+ 39。 string sqlconnstr = [ConnectionString].ConnectionString。 DataSet ds = new DataSet()。 using (SqlConnection sqlconn = new SqlConnection(sqlconnstr)) { SqlDataAdapter sqld = new SqlDataAdapter(selectstr, sqlconn)。 (ds, tabbook)。 } ………………………………………………………………………………………………. = pds。 ()。//數據邦定 } ( 2)用戶登錄頁面代碼: protected void loginButton_Click(object sender, ImageClickEventArgs e) { if ( == ) = 請輸入您的 Email地址。 else if ( == ) = 請輸入您的登錄密碼。 。 else { string sqlconnstr = [ConnectionString].ConnectionString。 SqlConnection sqlconn = new SqlConnection(sqlconnstr)。 SqlCommand sqlm = new SqlCommand()。 = sqlconn。 ()。 = select MailBox,PassWord from Login where (ManagerFlag=0)。 SqlDataReader sqldatareader = ()。 while (()) { if ( == (0) amp。amp。 == (1)) { Session[UserName] = 。// Session[UserName]。//標示用戶是否登錄 ,從而切換母板 if (Session[UserName] != null) { Session[masterpage] = 。 } if (Session[IsLogin] == true) ()。 else ()。 } } = 賬號或密碼錯誤,請重新輸入 。 } } ( 3)用戶注冊頁面代碼 protected void Bt_Sumbit_Click(object sender, EventArgs e) { if ([yzmcode] == null) return。 if (([yzmcode].Value, , true) != 0) {//判斷注冊碼是否輸入正確 = 驗證碼錯誤,請輸入正確的驗證碼。 。 return。 } else if (!) = true。 else { insert()。 if () { = 0。 return。 }//判斷郵箱是否注冊過 = 1。 = 。 Session[UserName] = 。 Session[masterpage] = 。 Session[master] = ~/Master/。 } } protected void insert()//插入用戶的注冊數據到數據庫 { string sqlconnstr = [ConnectionString].ConnectionString。 SqlConnection sqlconn = new SqlConnection(sqlconnstr)。 SqlCommand sqlmand = new SqlCommand()。 = sqlconn。 = insert into Login(MailBox,PassWord) values(@MailBox,@PassWord)。 (@MailBox,)。 (@PassWord,)。 try{()。()。 = false。} catch (Exception ex) { = true。 //郵箱注冊過讓Lb_error顯示 } finally{sqlmand = null。()。sqlconn = null。} } ( 4)個人中心代碼 protected void Page_Load(object sender, EventArgs e) { if (Session[UserName] == null) ()。 else = Session[UserName].ToString()。 if (!IsPostBack) bindgrid()。 //邦定數據庫 } void bindgrid() { string sqlconnstr = [ConnectionString].ConnectionString。 DataSet ds = new DataSet()。 string strsql = select BookID,BuyNum,BuyTime,IsDispose from Purchase where MailBox=39。+Session[UserName]+39。 string selectstr =select AccountLeft,Cost,Photo,LevelName,Upgrade = *500cost from UserIdentity,UserInfo where = and MailBox=39。+Session[UserName]+39。 using (SqlConnection sqlconn = new SqlConnection(sqlconnstr)) { SqlDataAdapter sqld = new SqlDataAdapter(strsql, sqlconn)。 (ds, taborder)。 SqlCommand sqlmand = new SqlCommand(selectstr, sqlconn)。 ()。
點擊復制文檔內容
高考資料相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1