• 大小: 840.21 KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2024-09-29
  • 语言: ASP
  • 标签: 课程设计  asp.net  

资源简介

聊天室系统 课程设计 asp.net 有论文

资源截图

代码片段和文件信息

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace Aptech.Chat
{
using Aptech.Chat.Class;

/// 
/// bottom 的摘要说明。
/// 

public partial class bottom : System.Web.UI.Page
{

protected void Page_Load(object sender System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
if(txtMessage.Text != ““)
{
SendMessage();
}
}

        private void SendMessage()
        {
         
        }

#region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}

/// 
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// 

private void InitializeComponent()
{    

}
#endregion

protected void btnSend_Click(object sender System.EventArgs e)
{
int type = 1;
if(chkSingle.Checked)
{
type = 2;
}

string message = “yle=font-weight:“ + (txtBold.Text == “1“?“bold“:““)  + “>“ + txtMessage.Text + ““;
 

ChatContentDataSet chatContentDataSet = (ChatContentDataSet)Application[“ChatContent“];
chatContentDataSet.ChatContent.AddChatContentRow(
int.Parse(Session[“UserId“].ToString())
int.Parse(txtAcceptUserId.Text)
Session[“UserName“].ToString()
txtAcceptUserName.Text
DateTime.Now
message
type);
txtMessage.Text = ““;

txtAcceptUserId.Text = “0“;
txtAcceptUserName.Text = “所有人“;

}

}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     406528  2009-07-03 14:00  聊天室系统.doc

     文件       8400  2009-06-24 12:35  Chat\bottom.aspx

     文件       5317  2005-08-30 11:15  Chat\bottom.aspx.resx

     文件       1191  2009-06-24 12:31  Chat\Chat.sln

    ..A..H.     28672  2009-06-24 15:53  Chat\Chat.suo

     文件       4964  2009-06-24 12:35  Chat\ConversionReport.txt

     文件         64  2009-06-24 12:35  Chat\Global.asax

     文件       1733  2002-01-30 13:04  Chat\Global.asax.resx

     文件        476  2005-08-23 09:47  Chat\index.htm

     文件       3055  2009-06-24 12:35  Chat\Left.aspx

     文件       2556  2009-06-24 12:35  Chat\Left.aspx.cs

     文件       5317  2005-08-29 18:06  Chat\Left.aspx.resx

     文件       1749  2009-06-24 12:35  Chat\Login.aspx

     文件       2805  2009-06-24 12:35  Chat\Login.aspx.cs

     文件       5317  2005-08-16 14:33  Chat\Login.aspx.resx

     文件        520  2009-06-24 12:35  Chat\Main.aspx

     文件       3752  2009-06-24 12:35  Chat\Main.aspx.cs

     文件       5317  2005-08-22 16:58  Chat\Main.aspx.resx

     文件        549  2005-08-23 09:39  Chat\Main.htm

     文件       3891  2009-06-24 12:35  Chat\Register.aspx

     文件       2939  2009-06-24 12:35  Chat\Register.aspx.cs

     文件       5317  2005-08-16 09:55  Chat\Register.aspx.resx

     文件       1178  2009-06-24 12:35  Chat\Top.aspx

     文件       1443  2009-06-24 12:35  Chat\Top.aspx.cs

     文件       5317  2005-08-30 16:43  Chat\Top.aspx.resx

     文件       4162  2005-08-23 16:47  Chat\UserInfo.dtq

     文件        278  2009-06-24 15:56  Chat\vwd.webinfo

     文件        712  2009-06-24 12:35  Chat\WebForm1.aspx

     文件       1844  2009-06-24 12:35  Chat\WebForm1.aspx.cs

     文件       5317  2005-08-09 10:22  Chat\WebForm1.aspx.resx

............此处省略177个文件信息

评论

共有 条评论