1 / 12

ASP.Net

ASP.Net. 聊天室與新聞討論群組 M9153308 李佳聰. 聊天網頁的組成與操作. Enter.aspx. Talk.aspx. Chatroom.mdb (Chatroom). Chatroom.mdb (Users). Setup.aspx. View.aspx. Session. Chatroom.mdb(Users). Chatroom.mdb(Chatroom). R efresh. < html> <head>

sherry
Download Presentation

ASP.Net

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ASP.Net 聊天室與新聞討論群組 M9153308 李佳聰

  2. 聊天網頁的組成與操作 Enter.aspx Talk.aspx Chatroom.mdb (Chatroom) Chatroom.mdb (Users) Setup.aspx View.aspx Session

  3. Chatroom.mdb(Users)

  4. Chatroom.mdb(Chatroom)

  5. Refresh • <html> • <head> • <META HTTP-EQUIV=“refresh” CONTENT=“1”;URL=“Reload.aspx”> • </head> • <body> • …………. • </body> • </html>

  6. View.aspx • <head> • <META HTTP-EQUIV=“refresh” CONTENT=“<% =Freq %>” ;URL=“<% =URL %>”> • </head> • …… • Sub Page_Load(sender as Object, e As EventArgs) • Freq=session(“Freq”) • If Freq=o then Freq=30 • URL=Request.ServerVariables(“PATH_INFO”) • …… • End Sub

  7. Setup.aspx • Sub Set_Click(sender as object, e as EventArgs) • If val(Freq.Text)>0 then • Session(“Freq”)=val(Freq.Text) • Else • Freq.Text=“30” • Session(“Freq”)=30 • End if • Msg.Text=“重讀時間間隔重設為”& Freq.Text & “秒” • End Sub

  8. 新聞討論群組 進入討論 Title.aspx 顯示標題 Detail.aspx 討論內容 返回討論主畫面 R/W R/W Newa.mdb

  9. News.mdb(Titles)

  10. News.mdb(Details)

  11. Relation Details Titles

  12. SQL Statement • Limit to last 50 records • Select Top 50 From Titles Order By LastNewsDate Desc • Limit to last 2 weeks • Select * From Titles Where LastNewsDate > DateAdd(‘d’,-14,Now()) Order By LastNewsDate Desc • Upate Database • “Update Titles Set LastNewsDate=Now(), [Number]=[Number]+1” & “Where TitleID=“ & TitleID

More Related