예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                lang   = ConvertUtility.ToInt32(Request.QueryString["lang"]).ToString();
                width  = Request.QueryString["w"];
                preurl = ConfigurationSettings.AppSettings.Get("urldata");
                DataTable dt = VideoController.GetAllCategoryExeptCatIDHasCache(Session["telco"].ToString(), (int)Constant.Video.Category, 0);
                totalcat = dt.Rows.Count;
                rptCategory.DataSource     = dt;
                rptCategory.ItemDataBound += rptCategory_ItemDataBound;;
                rptCategory.DataBind();

                if (lang == "1")
                {
                    ltrTheLoai.Text = Resources.Resource.vTheLoaiVideo;
                    //ltrGia.Text = "(" + Resources.Resource.wThongBaoGia + ConfigurationSettings.AppSettings.Get("videoprice") + Resources.Resource.wDonViTien + "/video)";
                }
                else
                {
                    ltrTheLoai.Text = Resources.Resource.vTheLoaiVideo_KD;
                    //ltrGia.Text = "(" + Resources.Resource.wThongBaoGia_KD + ConfigurationSettings.AppSettings.Get("videoprice") + Resources.Resource.wDonViTien_KD + "/video)";
                }
            }
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dt = VideoController.GetAllCategoryExeptCatIDHasCache(AppEnv.CheckSessionTelco(), (int)Constant.Video.Category, 0);

            if (dt != null && dt.Rows.Count > 0)
            {
                rptCategory.DataSource = dt;
                rptCategory.DataBind();
            }
        }
예제 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     width = Request.QueryString["w"];
     lang  = ConvertUtility.ToInt32(Request.QueryString["lang"]);
     if (!Page.IsPostBack)
     {
         DataTable dt = VideoController.GetAllCategoryExeptCatIDHasCache(Session["telco"].ToString(), (int)Constant.Video.Category, 0);
         if (dt != null && dt.Rows.Count > 0)
         {
             rptCategory.DataSource = dt;
             rptCategory.DataBind();
         }
     }
 }
예제 #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                lang  = ConvertUtility.ToInt32(Request.QueryString["lang"]).ToString();
                width = Request.QueryString["w"];
                DataTable dt = VideoController.GetAllCategoryExeptCatIDHasCache(Session["telco"].ToString(), (int)Constant.Video.Category, 0);
                totalcat = dt.Rows.Count;

                if (dt.Rows.Count > 0)
                {
                    rptTheLoaiVideo.DataSource     = dt;
                    rptTheLoaiVideo.ItemDataBound += rptTheLoaiGame_ItemDataBound;
                    rptTheLoaiVideo.DataBind();
                }
            }
        }