Exemple #1
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            if(!Page.IsPostBack)
            {

                        BBSClass bbsclass = new BBSClass();
            //��ʾϵͳ����

            SqlDataReader dr_sysbulletin = bbsclass.GetDeskTopBulletin();
            string innerstring = "";
            while(dr_sysbulletin.Read())
            {
                innerstring += "<a href='../SubModule/UnitiveDocument/BBS/Display.aspx?BoardID="+dr_sysbulletin["board_id"].ToString()+"&ItemID="+dr_sysbulletin["item_id"].ToString()+"' target='_blank' title='"+dr_sysbulletin["content"].ToString()+"'>" + "aaa" + "</a><font size=2>(" + DateTime.Parse(dr_sysbulletin["send_time"].ToString()).ToString() + ")  </font>";
            }
            sys_bulletin.InnerHtml = innerstring;

                //��ʾʱ��
                lbl_Hour.Text = DateTime.Now.Hour.ToString();
                lbl_Minute.Text = DateTime.Now.Minute.ToString();
                lbl_Second.Text = DateTime.Now.Second.ToString();
                lbl_year.Text=DateTime.Now.Date.Year.ToString();
                lbl_month.Text=DateTime.Now.Date.Month.ToString();
                lbl_day.Text=DateTime.Now.Date.Day.ToString();
                //��ʾ�����ڵĿ�������
            }
        }