Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            Member  mem       = new Member();
            DataRow dr        = mem.GetInfoName(Membertask.Name);
            string  vusername = dr["username"].ToString().Trim();

            string sLang = Globals.CurrentLang;
            if (sLang == "vn")
            {
                sLang     = "vi";
                test_lang = 1;
            }
            else
            {
                test_lang = 2;
            }
            ltlLabTitle.Text = Language.GetTextByID(172);

            News    anews = new News();
            DataRow drow  = anews.GetInfo(LogID);

            string aLogID = drow["id"].ToString().Trim();
            Title = drow["title"].ToString().Trim();

            //				string PageQuery = "page";
            //				string strcPage = Request.QueryString[PageQuery];
            //				if (strcPage == null)
            //					strcPage = "1";
            //				int cPage = Convert.ToInt32(strcPage);
            //				int TotalRecords, TotalPages;

            string  LogId = aLogID;
            Logfile log   = new Logfile();
            rptLogFile.DataSource = log.SearchingLog(LogId);
            rptLogFile.DataBind();


            //				PageList2.m_pTotalPage = TotalPages;
            //				PageList2.m_pPageQuery = PageQuery;
            //				PageList2.m_pCurrentPage = cPage;
            //				PageList2.m_pIconPath = Globals.UrlImages;
            //
            //				if(TotalRecords == 0)
            //				{
            //					ltlTotal1.Visible = false;
            //
            //				}

            //				else
            //				{
            //					ltlTotal1.Text = ltlTotal1.Text = string.Format(Language.GetTextByID(45),TotalRecords);
            //
            //				}
        }
    }