日期:2014-05-17 浏览次数:20444 次
protected void Page_Load(object sender, EventArgs e)
{
string qh = DateTime.Now.ToString("yyyyMMdd");
DateTime dt1 = DateTime.Now;
int huor = Convert.ToInt32(dt1.Hour.ToString());
int minute = Convert.ToInt32(dt1.Minute.ToString());
int n = (huor * 60 + minute) / 10;
string n3 = n.ToString();
string qishu;
if (n3.Length < 3)
{
qishu = qh + "0" + n3;
}
else
{
qishu = qh + n3;
}
Session["qishu"] = qishu;
}
public class Global : System.Web.HttpApplication
{
public static Timer gtimer = null;
void Application_Start(object sender, EventArgs e)
{
gtimer = new Timer(300000);
&n