Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         lang   = ConvertUtility.ToInt32(Request.QueryString["lang"]).ToString();
         hotro  = ConvertUtility.ToInt32(Request.QueryString["hotro"]).ToString();
         width  = Request.QueryString["w"];
         preurl = ConfigurationSettings.AppSettings.Get("urldata");
         DataTable dt = PhanmemController.GetAllCategoryExeptCatIDHasCache(Session["telco"].ToString(), (int)Constant.APP.Category, 0);
         totalcat = dt.Rows.Count;
         rptCategory.DataSource     = dt;
         rptCategory.ItemDataBound += rptCategory_ItemDataBound;;
         rptCategory.DataBind();
         string price = ConfigurationSettings.AppSettings.Get("appprice");
         if (ConvertUtility.ToString(Request.QueryString["catid"]) == "1")
         {
             price = "1000";
         }
         if (lang == "1")
         {
             ltrTheLoai.Text = Resources.Resource.pmTheLoaiPhanMem;
         }
         else
         {
             ltrTheLoai.Text = Resources.Resource.pmTheLoaiPhanMem_KD;
         }
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                DataTable dt = PhanmemController.GetAllCategoryExeptCatIDHasCache(AppEnv.CheckSessionTelco(), (int)Constant.APP.Category, 0);

                if (dt != null && dt.Rows.Count > 0)
                {
                    rptCategory.DataSource = dt;
                    rptCategory.DataBind();
                }
            }
        }