大家给我推荐下,有那些比较好的asp.net网站和论坛,给我介绍几个吧! 大家给我推荐下,有那些比较好的asp.net网站和论坛,给我介绍个吧! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://www.chinaaspx.com一个很好的学习网站,好象是《计算机世界》办的。有学习社区。 前一段我用APS.NET作了一个基于拉技术的聊天室,后来想在其中增加点游戏内容,感觉到基于拉技术的响应实时性不好,所以想改为基于拉技术的。 现已作了尝试,代码如下:// Content.aspx.cs /////////////////////////////////////////////////////// public class Content : System.Web.UI.Page { private void Page_Load(object sender, System.EventArgs e) { Session.Timeout = 60; Response.Write("欢迎 . . .<br>\n"); Response.Flush(); Application[Session.SessionID] = Response; System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite); } }// Send.aspx.cs ////////////////////////////////////////////////////////// public class Send : System.Web.UI.Page { protected System.Web.UI.WebControls.Button ButtonSend; protected System.Web.UI.WebControls.TextBox TextBox1; private void ButtonSend_Click(object sender, System.EventArgs e) { foreach(string name in Application.AllKeys) { HttpResponse Response = Application[name] as HttpResponse; if(Response!=null && Response.IsClientConnected) { Response.Write(TextBox1.Text + "<br>\n"); Response.Flush(); } else { Application.Remove(name); } } } } 可以聊天,但发现一大问题:同时连接的用户被限制在50个左右,再多的就连不上了,并且会导致其他用户也陷于停滞状态。 请高手答疑解惑,还可另开贴给分! 很好的一方淨土:http://www.blueshop.com.tw asp.net session超时处理问题??? 关于系统时间的问题 多人同时读取一个xml,一人修改此xml。需要lock吗? StringWriter在那个命名空间内? 关于一条SQL语句的问题 急急急,在线等~~~~~~~~~~~~~~~~ asp.net操作进程问题 请教一个用户控件问题,大侠帮帮手啊 使用验证控件检测用户输入,如果用户没有打开javascript 脚本功能,就不能验证了,如果放到后台验证,怕速度慢,真是矛盾啊! 搭建IIS时数据库怎么办?连接出问题 字符替换 新手求助!datagrid的删除要点两下才能删除!代码如下:
一个很好的学习网站,好象是《计算机世界》办的。
有学习社区。
现已作了尝试,代码如下:// Content.aspx.cs ///////////////////////////////////////////////////////
public class Content : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
Session.Timeout = 60;
Response.Write("欢迎 . . .<br>\n");
Response.Flush();
Application[Session.SessionID] = Response;
System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
}
}
// Send.aspx.cs //////////////////////////////////////////////////////////
public class Send : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Button ButtonSend;
protected System.Web.UI.WebControls.TextBox TextBox1;
private void ButtonSend_Click(object sender, System.EventArgs e)
{
foreach(string name in Application.AllKeys)
{
HttpResponse Response = Application[name] as HttpResponse;
if(Response!=null && Response.IsClientConnected)
{
Response.Write(TextBox1.Text + "<br>\n");
Response.Flush();
}
else
{
Application.Remove(name);
}
}
}
} 可以聊天,但发现一大问题:同时连接的用户被限制在50个左右,再多的就连不上了,并且会导致其他用户也陷于停滞状态。
请高手答疑解惑,还可另开贴给分!