|
 |
资料搜索 |
|
|
|
|
|
|
|
 |
相关文章 |
|
|
|
|
|
|
|
|
|
|
| [ 来源:CSDN | 作者:未知 | 时间:2006-4-4 14:21:36 | 浏览:人次 ] | |
|
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); } } } }
|
|
|
|
|
|
特别声明: 本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。 |
|
|
|
|
|
栏目编辑: 设计风 |
责任编辑: keke |
|
|
原始作者: 未知 |
录入时间: 2006-4-4 14:21:36 |
|
|
信息来源: CSDN |
投稿信箱: Edu#chinaz.com |
|
|
|
| |
|