CsharpNevisi
سه شنبه 20 خرداد 1393, 22:11 عصر
سلام ... !!!
از کجا میتونم بفهمم که صفحه وبم بسته شده ؟؟؟؟
مثلا همین فوم که واردش میشیم چراغ انلاین بودنمون روشن میشه و وقتی خارج میشیم خاموش میشه ... !!!
من این کدو نوشتم ولی کار نمیکنه .... !!!! :عصبانی++:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication1
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Page.Unload += PageUnload;
}
protected void PageUnload(object sender, EventArgs e)
{
Application["msg"] = "Exit";
}
protected void Button1_Click(object sender, EventArgs e)
{
Application["msg"] = TextBox1.Text;
}
}
}
از کجا میتونم بفهمم که صفحه وبم بسته شده ؟؟؟؟
مثلا همین فوم که واردش میشیم چراغ انلاین بودنمون روشن میشه و وقتی خارج میشیم خاموش میشه ... !!!
من این کدو نوشتم ولی کار نمیکنه .... !!!! :عصبانی++:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication1
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Page.Unload += PageUnload;
}
protected void PageUnload(object sender, EventArgs e)
{
Application["msg"] = "Exit";
}
protected void Button1_Click(object sender, EventArgs e)
{
Application["msg"] = TextBox1.Text;
}
}
}