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

正文內(nèi)容

個人博客管理系統(tǒng)web課程設(shè)計-在線瀏覽

2024-11-17 08:17本頁面
  

【正文】 if ((Session[UserName] == null)) { (scriptalert(39。)。../../39。 ()。 + ID + 39。 = new string[] { ST_n_id }。 } protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { SqlData da = new SqlData()。 + [].Value + 39。 if (delete) { (script language=javascriptalert(39。)。39。 } else { (script language=javascriptalert(39。)。39。 } } protected void btnSearch_Click(object sender, EventArgs e) { SqlData da = new SqlData()。 switch (search) { case 文章 ID: (, Select * From ST_news Where ST_n_id Like 39。 and BlogID=39。)。 case 文章主題 : (, Select * From ST_news Where ST_n_title Like 39。 and BlogID=39。)。 default: (script lanuage=javascriptalert(39。)。javascript:(1)39。 break。 ST_Article_Bind()。 } ((LinkButton)[5].Controls[0]).(onclick, return confirm(39。))。 i=。 if(==true) { =true。 } } } protected void Button2_Click(object sender, EventArgs e) { //()。 i = 1。 if ( == true) { string sqlstr = delete from ST_news where ST_n_id=39。 (sqlstr)。批量刪除成功!《 Web 程序設(shè)計》課程設(shè)計 13 39。location=39。/script)。 for (int i = 0。 i++) { CheckBox cbox = (CheckBox)[i].FindControl(CheckBox1)。 } } } . 博客文章信息修改 當(dāng)單機(jī) GridView 控件中的“修改”按鈕時,將會鏈接到 頁面,如下圖所示: 圖表 32 博客文章信息修改圖 具體代碼如下: public partial class Module_Blog_ReplayContent : 《 Web 程序設(shè)計》課程設(shè)計 14 { protected void Page_Load(object sender, EventArgs e) { //if (Session[UserName] == null) //{ // (~/)。 string str2 = [id].ToString()。 ()。 + str2 + 39。 DataSet ds = new DataSet()。 //創(chuàng)建 DataRowView對象的一個實(shí)例 DataRowView rowview = [ST_news].DefaultView[0]。 //將文章內(nèi)容讀取到 txtContent文本框中 = rowview[ST_n_content].ToString()。 } catch (Exception ex) 《 Web 程序設(shè)計》課程設(shè)計 15 { ()。 string Com = update ST_news set ST_n_content=39。 where ST_n_id=39。 //創(chuàng)建公共類 SqlData的一個新的實(shí)例對象 SqlData da = new SqlData()。 if (update) { (script language=javascriptalert(39。)。39。 } else { ()。 } } 《 Web 程序設(shè)計》課程設(shè)計 16 . 博客文章添加 博客文 章添加頁面如下圖所示: 當(dāng)單機(jī) 頁面中的“添加新文章”超鏈接時,將會鏈接到 Blog 文件夾下的 頁面;在頁面加載事件中將博客文章類型綁定到下拉列表中;單擊“添加”按鈕,觸發(fā)其 Click 事件,實(shí)現(xiàn)博客新文章的添加操作。 SqlConnection mycon。 string ID。 //頁面重定向 《 Web 程序設(shè)計》課程設(shè)計 17 } SqlConnection mycon = new SqlConnection([conStr])。//連接數(shù)據(jù)庫 mycon。 SqlDataAdapter mydataadapter = new SqlDataAdapter(select * from tb_Blog where UserName=39。, mycon)。 SqlDataAdapter是 DataSet和 SQL Server之間的 橋接 器,用于檢索和保存數(shù)據(jù)。//填充數(shù)據(jù)集,使用語句填 mydataset,利用查詢命令賦值。取出來 mydataset中tb_Blog表的默認(rèn)視圖,其實(shí)就是 datatable,然后取第 0行數(shù)據(jù),類型是 datarowview。//通過視圖通過 rowview也就是一行數(shù)據(jù),取 blogID列的值。 //SqlConnection mycon = new SqlConnection([conStr])。 string sqlstr = select * from ST_Class where BlogID=39。//字符串 sqlstr是 STCLASS表中的的博客 ID SqlCommand my = new SqlCommand(sqlstr, mycon)。//my是 sqlmand的一個實(shí)例 //判斷是否有數(shù)據(jù) while (()) { (new ListItem(dr[ST_c_name].ToString(),dr[ST_c_id].ToString()))。 } } protected void btnAdd_Click(object sender, EventArgs e) 《 Web 程序設(shè)計》課程設(shè)計 18 { //string ID。 //()。 //SqlDataAdapter mydataadapter = new SqlDataAdapter(select * from tb_Blog where UserName=39。, mycon)。 //DataRowView rowview = [tb_Blog].DefaultView[0]。 //創(chuàng)建插入新文章信息的 Sql語句 string = Insert into ST_news(ST_n_title,ST_n_author,ST_n_key,ST_n_content,ST_n_iscmd,ST_c_id,BlogID) values(39。,39。,39。,39。,39。,39。,39。)。 if (add) { (script language=javascriptalert(39。)。39。 } else { (script language=javascriptalert(39。)。javascript:(1)39。 } } protected void btnCancle_Click(object sender, EventArgs e) 《 Web 程序設(shè)計》課程設(shè)計 19 { ()。 = 。 = 。 } else { cbox = 0。具體代碼如下: public partial class Module_Admin_BlogType : { SqlData My_sqldata = new SqlData()。 private static string ID。 ST_myConn = new SqlConnection(ST_dns)。 /*判斷是否登錄 */ ST_check_Login()。 《 Web 程序設(shè)計》課程設(shè)計 21 SqlDataAdapter mydataadapter = new SqlDataAdapter(select * from tb_Blog where UserName=39。, ST_myConn)。 DataRowView rowview = [tb_Blog].DefaultView[0]。 } } public void ST_check_Login() { if ((Session[UserName] == null)) { (scriptalert(39。)。../../39。 ()。 + ID + 39。 //獲取數(shù)據(jù)表中的主鍵字段 = new string[] { ST_c_id }。 ()。 if ( != ) { string sqlstr1 = select count(*) from ST_class where ST_c_name=39。and BlogID=39。 SqlCommand my = new SqlCommand(sqlstr1, ST_myConn)。 if (intcount 0) { (scr
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1