//private User_AgentInfo _info; protected void Page_Load(object sender, EventArgs e) { id = ConvertUtility.ToInt32(Request.QueryString["id"]); if (!Page.IsPostBack) { //_info = Get_User_Agent_Info(); //Detail DataTable dtDetail = PhanmemController.GetAPPDetailByIDHasCache(AppEnv.CheckSessionTelco(), id); //end detail if (dtDetail != null && dtDetail.Rows.Count > 0) { price = AppEnv.GetSetting("Appprice"); if (dtDetail.Rows[0]["Web_Name"].ToString() == "Vmg_zone") { price = "1000"; } rptDetail.DataSource = dtDetail; rptDetail.DataBind(); rptDes.DataSource = dtDetail; rptDes.DataBind(); int totaltopdownload = 0; DataTable dtltopdownload = PhanmemController.GetAllAppByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), ConvertUtility.ToInt32(dtDetail.Rows[0]["W_AppCategoryID"]), 0, pagesize, tpage, out totaltopdownload); rptList.DataSource = dtltopdownload; //rptList.ItemDataBound += new RepeaterItemEventHandler(rptCungTheLoai_ItemDataBound); rptList.DataBind(); } } }
protected void Page_Load(object sender, EventArgs e) { preurl = ConfigurationSettings.AppSettings.Get("urldata"); width = Request.QueryString["w"]; hotro = ConvertUtility.ToInt32(Request.QueryString["hotro"]).ToString(); lang = ConvertUtility.ToInt32(Request.QueryString["lang"]); id = ConvertUtility.ToInt32(Request.QueryString["id"]); if (!IsPostBack) { _info = Get_User_Agent_Info(); if (ConvertUtility.ToInt32(Request.QueryString["g"]) == 1) { txtSoDienThoaiTang.Focus(); } //Detail DataTable dtDetail = PhanmemController.GetAPPDetailByIDHasCache(Session["telco"].ToString(), id); //end detail if (dtDetail.Rows.Count > 0) { price = ConfigurationSettings.AppSettings.Get("Appprice"); if (dtDetail.Rows[0]["Web_Name"].ToString() == "Vmg_zone") { price = "1000"; } lnkCateChannel.NavigateUrl = UrlProcess.GetAppCategoryUrl(lang.ToString(), width, dtDetail.Rows[0]["W_AppCategoryID"].ToString(), hotro); lnkHomeChannel.NavigateUrl = UrlProcess.GetAppHomeUrl(lang.ToString(), width, hotro); if (lang == 1) { lnkHomeChannel.Text = "PHẦN MỀM"; lnkCateChannel.Text = dtDetail.Rows[0]["Title_Unicode"].ToString().ToUpper(); ltrTenAnh.Text = dtDetail.Rows[0]["AppNameUnicode"].ToString(); ltrNhom.Text = Resources.Resource.wTheLoai + dtDetail.Rows[0]["Web_Name"].ToString(); ltrLuottai.Text = Resources.Resource.wLuotTai + dtDetail.Rows[0]["Download"].ToString().ToUpper(); //ltrGiaTai.Text = Resources.Resource.wGiaTai + price + Resources.Resource.wDonViTien; //ltrGiaTang.Text = Resources.Resource.wGiaTang + price + Resources.Resource.wDonViTien; ltrGioiThieu.Text = Resources.Resource.wGioiThieu + dtDetail.Rows[0]["DescriptionUnicode"].ToString(); lnkTai.Text = "<span class=\"bold\">" + Resources.Resource.wTaiVe + "</span>"; ltrGuiTang.Text = Resources.Resource.wGuiTang; ltrCungTheLoai.Text = Resources.Resource.pmPhanMemCungTheLoai; } else { lnkCateChannel.Text = dtDetail.Rows[0]["Title"].ToString().ToUpper(); ltrTenAnh.Text = dtDetail.Rows[0]["AppName"].ToString(); ltrNhom.Text = Resources.Resource.wTheLoai_KD + UnicodeUtility.UnicodeToKoDau(dtDetail.Rows[0]["Web_Name"].ToString()); ltrLuottai.Text = Resources.Resource.wLuotTai_KD + dtDetail.Rows[0]["Download"].ToString().ToUpper(); //ltrGiaTai.Text = Resources.Resource.wGiaTai_KD + price + Resources.Resource.wDonViTien_KD; //ltrGiaTang.Text = Resources.Resource.wGiaTang_KD + price + Resources.Resource.wDonViTien_KD; ltrGioiThieu.Text = Resources.Resource.wGioiThieu_KD + dtDetail.Rows[0]["Description"].ToString(); lnkTai.Text = "<span class=\"bold\">" + Resources.Resource.wTaiVe_KD + "</span>"; ltrGuiTang.Text = Resources.Resource.wGuiTang_KD; ltrCungTheLoai.Text = Resources.Resource.pmPhanMemCungTheLoai_KD; } if (MobileUtils.CheckValidModel(dtDetail.Rows[0]["ModelSupport"].ToString(), _info)) { //lnkTai.NavigateUrl = "../Download.aspx?id=" + dtDetail.Rows[0]["W_AppItemID"].ToString() + "&lang=" + lang + "&w=" + width; lnkTai.NavigateUrl = UrlProcess.GetAppDownloadUrl(lang.ToString(), width, dtDetail.Rows[0]["W_AppItemID"].ToString(), hotro); } else { lnkTai.Visible = false; } WapXzone_VNM.CreateAvatar.MOReceiver ws = new WapXzone_VNM.CreateAvatar.MOReceiver(); ws.GenerateAvatarThumnail(dtDetail.Rows[0]["Avatar"].ToString(), 120, 141); imgDetail.ImageUrl = preurl + MultimediaUtility.GetAvatarThumnail(dtDetail.Rows[0]["Avatar"].ToString(), 120, 141).Replace("~", ""); //imgDetail.ImageUrl = preurl + dtDetail.Rows[0]["Avatar"].ToString().Replace("~", ""); //Other if (!string.IsNullOrEmpty(Request.QueryString["tpage"])) { tpage = ConvertUtility.ToInt32(Request.QueryString["tpage"]); } int totaltopdownload = 0; DataTable dtltopdownload = PhanmemController.GetAllAppByCategoryAndDisplayTypeHasCache(Session["telco"].ToString(), ConvertUtility.ToInt32(dtDetail.Rows[0]["W_AppCategoryID"]), 0, pagesize, tpage, out totaltopdownload); rptCungTheLoai.DataSource = dtltopdownload; rptCungTheLoai.ItemDataBound += new RepeaterItemEventHandler(rptCungTheLoai_ItemDataBound); rptCungTheLoai.DataBind(); Paging1.totalrecord = totaltopdownload; Paging1.pagesize = pagesize; Paging1.numberpage = pagenumber; Paging1.defaultparam = "?lang=" + Request.QueryString["lang"] + "&display=" + Request.QueryString["display"] + "&w=" + Request.QueryString["w"] + "&id=" + Request.QueryString["id"]; Paging1.queryparam = "?lang=" + Request.QueryString["lang"] + "&display=" + Request.QueryString["display"] + "&w=" + Request.QueryString["w"] + "&id=" + Request.QueryString["id"] + "&tpage="; } } }