protected void report_OnClick(object sender, EventArgs e) { try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); } } catch //(Exception ex) { sMsisdn = "Wifi"; } MSISDN = "8801622595292"; // objCDA.ExecuteNonQuery("EXEC Partner_API.dbo.spSendSMS '" + MSISDN + "', '404 Error BDTube from User " + sMsisdn + " , Need To check BDTube portal urgently!!!'", "WAPDB"); MSISDN = "8801913828774"; objCDA.ExecuteNonQuery("EXEC Partner_API.dbo.spSendSMS '" + MSISDN + "', '404 Error BDTube" + sMsisdn + " , Need To check BDTube portal urgently!!!'", "WAPDB"); MSISDN = "8801814652539"; objCDA.ExecuteNonQuery("EXEC Partner_API.dbo.spSendSMS '" + MSISDN + "', '404 Error BDTube'" + sMsisdn + " , Need To check BDTube portal urgently!!!'", "WAPDB"); thnks.Visible = true; }
private void userInfo() { #region "MSISDN" try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); if (sMsisdn.StartsWith("88018")) { OPERATOR = "Robi"; } if (sMsisdn.StartsWith("88016")) { OPERATOR = "Airtel"; } if (sMsisdn.StartsWith("88019")) { OPERATOR = "Banglalink"; } if (sMsisdn.StartsWith("88015")) { OPERATOR = "Teletalk"; } } } catch //(Exception ex) { sMsisdn = string.Empty; } //sMsisdn = "8801955279938"; #endregion "MSISDN" string UAPROF_URL = Request.UserAgent; try { HS_OS = "Android"; //HSProfiling.Service test = new HSProfiling.Service(); //UAProfile ua = new UAProfile(); //var HSProfiling = test.HansetDetection(UAPROF_URL, ua.GetUAProfileXWap()); //HS_MANUFAC = HSProfiling.Manufacturer; //HS_MOD = HSProfiling.Model; //HS_DIM = HSProfiling.Dimension; //HS_OS = HSProfiling.OS; //UAPROF_URL = HSProfiling.UAXML; } catch { } }
protected void Page_Load(object sender, EventArgs e) { #region "MSISDN" if (Session["MSISDN"] == null) { try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); } } catch //(Exception ex) { sMsisdn = string.Empty; } } else { sMsisdn = Session["MSISDN"].ToString(); } if (sMsisdn.StartsWith("88018")) { Response.Redirect("Restricted.aspx"); } #endregion "MSISDN" string scriptForBl = @" $(document).ready(function() { $('.vdtitle').css('background-color','#58C1E6'); });"; cssTemplate.Attributes.Add("href", "~/Css/StyleSheetBL.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); ImageButton2.ImageUrl = "~/images/more.png"; if (!IsPostBack) { BnNatok(); } }
protected void Page_Load(object sender, EventArgs e) { string number = oUAProfile.GetMSISDN(); if (isSubscribe(number)) { Response.Redirect("Default.aspx"); } imgTitle.ImageUrl = "~/Images/bdtubeAdd.png"; imgBatil.ImageUrl = "~/Images/batil.jpg"; }
protected void Page_Load(object sender, EventArgs e) { #region "MSISDN" if (Session["MSISDN"] == null) { try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); } } catch //(Exception ex) { sMsisdn = string.Empty; } } else { sMsisdn = Session["MSISDN"].ToString(); } //sMsisdn = "8801955279938"; #endregion "MSISDN" if (sMsisdn.StartsWith("88015")) { ha.Src = "~/images/header.jpg"; } else if (sMsisdn.StartsWith("88019")) { ha.Src = "~/images/header.jpg"; } else if (sMsisdn.StartsWith("88016")) { ha.Src = "~/images/header.jpg"; } else { ha.Src = "~/images/header.jpg"; } //if (sMsisdn.StartsWith("88019")) { cssTemplate.Attributes.Add("href", "~/Css/StyleSheetBL.css"); } ha.Src = "~/images/header.jpg"; }
protected void Page_Load(object sender, EventArgs e) { string scriptForBl = @" $(document).ready(function() { $('.vdtitle').css('background-color','#58c1e6'); });"; // Image3.ImageUrl = "~/Images/baaad.jpg"; string number = oUAProfile.GetMSISDN(); if (isSubscribe(number)) { Response.Redirect("Default.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { #region "MSISDN" if (Session["MSISDN"] == null) { try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); } } catch //(Exception ex) { sMsisdn = string.Empty; } } else { sMsisdn = Session["MSISDN"].ToString(); } if (sMsisdn.StartsWith("88018")) { Response.Redirect("Restricted.aspx"); } #endregion "MSISDN" string scriptForBl = @" $(document).ready(function() { $('.vdtitle').css('background-color','#58C1E6'); });"; cssTemplate.Attributes.Add("href", "~/Css/StyleSheetBL.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); if (!IsPostBack) { userInfo(); dsPage = CA.GetDataSet("Exec [sp_PerPageAccessLog] '" + "fitness.mobi" + "','" + "FitnessSecrets" + "','" + sMsisdn + "','" + UAPROF_URL + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + HS_OS + "','" + oUAProfile.GetUserIP() + "'", "WAPDB"); loadFitnessSecrets(); } }
protected void Page_Load(object sender, EventArgs e) { #region "MSISDN" if (Session["MSISDN"] == null) { try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); } } catch //(Exception ex) { sMsisdn = string.Empty; } } else { sMsisdn = Session["MSISDN"].ToString(); } if (sMsisdn.StartsWith("88018")) { // Response.Redirect("Restricted.aspx"); } #endregion "MSISDN" if (!isSubscribe(sMsisdn)) { if (sMsisdn.StartsWith("88018")) { Response.Redirect("Confirmation.aspx"); } else { Response.Redirect("Default.aspx"); } } string scriptForBl = @" $(document).ready(function() { $('.vdtitle').css('background-color','#58C1E6'); });"; cssTemplate.Attributes.Add("href", "~/Css/StyleSheetBL.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); if (!IsPostBack) { string type = String.Empty; try { type = Request.QueryString["type"]; userInfo(); UAPROF_URL = Request.UserAgent; if (type == null) { Response.Redirect("Default.aspx"); } } catch { Response.Redirect("Default.aspx"); } if (type == "zumba") { dsPage = CA.GetDataSet("Exec [sp_PerPageAccessLog] '" + "fitness.mobi" + "','" + "Zumba" + "','" + sMsisdn + "','" + UAPROF_URL + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + HS_OS + "','" + oUAProfile.GetUserIP() + "'", "WAPDB"); loadZumbaDetails(); } else if (type == "yoga") { dsPage = CA.GetDataSet("Exec [sp_PerPageAccessLog] '" + "fitness.mobi" + "','" + "Yoga" + "','" + sMsisdn + "','" + UAPROF_URL + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + HS_OS + "','" + oUAProfile.GetUserIP() + "'", "WAPDB"); loadYogaDetails(); } else if (type == "easy") { dsPage = CA.GetDataSet("Exec [sp_PerPageAccessLog] '" + "fitness.mobi" + "','" + "EasyWorkOut" + "','" + sMsisdn + "','" + UAPROF_URL + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + HS_OS + "','" + oUAProfile.GetUserIP() + "'", "WAPDB"); loadEasyDetails(); } else if (type == "fitnessSecrets") { dsPage = CA.GetDataSet("Exec [sp_PerPageAccessLog] '" + "fitness.mobi" + "','" + "FitnessSecrets" + "','" + sMsisdn + "','" + UAPROF_URL + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + HS_OS + "','" + oUAProfile.GetUserIP() + "'", "WAPDB"); loadFitnessSecrets(); } } }
protected void Page_Load(object sender, EventArgs e) { #region "MSISDN" if (Session["MSISDN"] == null) { try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); } } catch //(Exception ex) { sMsisdn = string.Empty; } } else { sMsisdn = Session["MSISDN"].ToString(); } #endregion "MSISDN" //if (sMsisdn.StartsWith("88018")) //{ // Response.Redirect("Restricted.aspx"); //} string scriptForBl = @" $(document).ready(function() { $('.vdtitle').css('background-color','#58c1e6'); });"; cssTemplate.Attributes.Add("href", "~/Css/StyleSheetBL.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); if (!isSubscribe(sMsisdn)) { if (sMsisdn.StartsWith("88018")) { Response.Redirect("Confirmation.aspx"); } else { Response.Redirect("Default.aspx"); } } if (!IsPostBack) { newvideo(); } }
protected void Page_Load(object sender, EventArgs e) { // Year.Text = DateTime.Now.Year.ToString(); if (!IsPostBack) { #region UAProfile_AND_Banner #region "MSISDN" try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); } } catch //(Exception ex) { sMsisdn = string.Empty; } #endregion "MSISDN" string UAPROF_URL = oUAProfile.GetUserAgent(); try { HSProfiling.Service Profile = new HSProfiling.Service(); //HSProfiling. Profile = new HS_Profiling.ServiceSoapClient(); var HSProfiling = Profile.HansetDetection(UAPROF_URL, oUAProfile.GetUAProfileXWap()); HS_MANUFAC = HSProfiling.Manufacturer; HS_MOD = HSProfiling.Model; HS_DIM = HSProfiling.Dimension; HS_OS = HSProfiling.OS; UAPROF_URL = HSProfiling.UAXML; } catch { } lblHandset.Text = " " + HS_MANUFAC + " " + HS_MOD; //hlHome.NavigateUrl = "~/Default.aspx"; //hlSupport.NavigateUrl = "~/Support.aspx"; string scriptForBl = @" $(document).ready(function() { $('.robititle').css('background-color','#58C1E6'); });"; cssTemplate.Attributes.Add("href", "~/Css/StyleSheetBL.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); #region "TopHeader" try { if (string.IsNullOrEmpty(HS_DIM)) { throw new Exception(); } else { FOLDER = "D" + HS_DIM; } } catch //(Exception ex) { FOLDER = "D320x240"; } #endregion "TopHeader" object dim = oCDA.getSingleValue("EXEC spGetDimensionByCategoryCode'" + "3F0996CC-94DB-4C87-8EEE-790D79C42593" + "','" + FOLDER + "'", "WAPDB"); if (dim != null) { if (dim.ToString() == "Y") { sPath = "http://wap.shabox.mobi/CMS/UIHeader/" + FOLDER + "/"; } else if (dim.ToString() == "N") { string bestfitCat = oUAProfile.ClosestMinimumFinder(HS_DIM, "Wallpaper"); sPath = "http://wap.shabox.mobi/CMS/UIHeader/" + bestfitCat + "/"; } } else { sPath = "~http://wap.shabox.mobi/CMS/UIHeader/D320x240/"; } if (sMsisdn.StartsWith("88015")) { lnkHeader.ImageUrl = sPath + "BD_Tub_Header_TT.jpg"; cssTemplate.Attributes.Add("href", "~/StyleSheet/StyleSheetTT.css"); } else if (sMsisdn.StartsWith("88018")) { lnkHeader.ImageUrl = sPath + "Robi_bdtube_header.jpg"; cssTemplate.Attributes.Add("href", "~/StyleSheet/StyleSheetRobi.css"); } else if (sMsisdn.StartsWith("88016")) { lnkHeader.ImageUrl = sPath + "Robi_bdtube_header.jpg"; cssTemplate.Attributes.Add("href", "~/StyleSheet/StyleSheetRobi.css"); } else if (sMsisdn.StartsWith("88017")) { lnkHeader.ImageUrl = sPath + "BD_Tub_Header_GP.jpg"; //scrollBanner.ImageUrl = sPath + "BD_Tub_Header_Header.jpg"; cssTemplate.Attributes.Add("href", "~/StyleSheet/StyleSheetGP.css"); } else if (sMsisdn.StartsWith("88019")) { lnkHeader.ImageUrl = sPath + "BDtube.jpg"; } else { lnkHeader.ImageUrl = sPath + "BDtube.jpg"; } //lnkHeader.ImageUrl = sPath + "BDtube.jpg"; //lnkHeader.NavigateUrl = "~/Default.aspx"; //lnkFooter.ImageUrl = sPath + "Shabox_Buddy_Footer.jpg"; //lnkFooter.NavigateUrl = "~/Default.aspx"; #endregion UAProfile_AND_Banner DataSet dsWord = oCDA.GetDataSet("SELECT TOP (20) MSISDN, CONTENT_TITLE, CONTENT_TYPE_SHORT, CAST (TIME_STAMP AS datetime) AS Date, ChargingReply FROM tbl_Success_BDTUBE WHERE (MSISDN = '" + sMsisdn + "') ORDER BY TIME_STAMP DESC", "BDTUBE"); if (dsWord != null) { RptTopScore.DataSource = dsWord.Tables[0].Rows; RptTopScore.DataBind(); } //DataSet subStatusData = oCDA.GetDataSet("SELECT MSISDN, RegDate, ReActivationDate, DeactivationDate FROM tbl_Subscriber_BDTUBE WHERE (MSISDN = '" + sMsisdn + "') ORDER BY TimeStamp DESC", "BDTUBE"); DataSet subStatusData = oCDA.GetDataSet("EXEC[Partner_Basket].[dbo].[spSubStatus] '" + sMsisdn + "'", "BDTUBE"); if (subStatusData != null) { subStatus.DataSource = subStatusData.Tables[0].Rows; subStatus.DataBind(); } } if ((sMsisdn.StartsWith("88019") || sMsisdn.StartsWith("88018")) && isSubscribe(sMsisdn)) { //cancelSubscription.Visible = true; } }
protected void Page_Load(object sender, EventArgs e) { #region "MSISDN" if (Session["MSISDN"] == null) { try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); } } catch //(Exception ex) { sMsisdn = string.Empty; } } else { sMsisdn = Session["MSISDN"].ToString(); } if (isSubscribe(sMsisdn)) { cancelSubscriptionBlink.Visible = true; } if (sMsisdn.StartsWith("88018")) { // Response.Redirect("Restricted.aspx"); } #endregion "MSISDN" string scriptForBl = @" $(document).ready(function() { $('.ribonMusic').css('background-color','#58c1e6'); });"; string scriptForTT = @" $(document).ready(function() { $('.ribonMusic').css('background-color','#58c1e6'); });"; cssTemplate.Attributes.Add("href", "~/Css/StyleSheetBL.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); if (!IsPostBack) { #region UAProfile_AND_Banner #region "MSISDN" try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); } } catch //(Exception ex) { sMsisdn = string.Empty; } #endregion "MSISDN" if (sMsisdn.StartsWith("88018")) { // Response.Redirect("Restricted.aspx"); } string UAPROF_URL = oUAProfile.GetUserAgent(); try { HSProfiling.Service Profile = new HSProfiling.Service(); var HSProfiling = Profile.HansetDetection(UAPROF_URL, oUAProfile.GetUAProfileXWap()); HS_MANUFAC = HSProfiling.Manufacturer; HS_MOD = HSProfiling.Model; HS_DIM = HSProfiling.Dimension; HS_OS = HSProfiling.OS; UAPROF_URL = HSProfiling.UAXML; } catch { } //lblHandset.Text = " " + HS_MANUFAC + " " + HS_MOD; #endregion UAProfile_AND_Banner lblM.Text = sMsisdn; lblM1.Text = sMsisdn; DataSet dsWord = oCDA.GetDataSet("EXEC [FitnessPortal].[dbo].[sp_getHistory] '" + sMsisdn + "'", "BDTUBE"); DataSet subStatusData = oCDA.GetDataSet("EXEC [FitnessPortal].[dbo].[spSubStatus1] '" + sMsisdn + "'", "BDTUBE"); if (subStatusData != null) { grdMyAccount.DataSource = subStatusData; grdMyAccount.DataBind(); } if (dsWord != null) { if (sMsisdn == "") { GridView1.DataSource = null; GridView1.DataBind(); } else { GridView1.DataSource = dsWord; GridView1.DataBind(); } } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { #region "MSISDN" try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); subSmsisdn = sMsisdn.Substring(0, 5); ViewState["msisdn"] = sMsisdn; } } catch //(Exception ex) { sMsisdn = string.Empty; subSmsisdn = string.Empty; } //sMsisdn = "8801955279938"; #endregion "MSISDN" string UAPROF_URL = Request.UserAgent; try { HSProfiling.Service test = new HSProfiling.Service(); UAProfile ua = new UAProfile(); var HSProfiling = test.HansetDetection(UAPROF_URL, ua.GetUAProfileXWap()); HS_MANUFAC = HSProfiling.Manufacturer; HS_MOD = HSProfiling.Model; HS_DIM = HSProfiling.Dimension; HS_OS = HSProfiling.OS; UAPROF_URL = HSProfiling.UAXML; Session["HSOS"] = HS_OS; } catch { } string scriptForBl = @" $(document).ready(function() { $('.robititle').css('background-color','#F16521'); });"; string scriptForTT = @" $(document).ready(function() { $('.robititle').css('background-color','#71BD44'); });"; if (sMsisdn.StartsWith("88015")) { cssTemplate.Attributes.Add("href", "~/Css/StyleSheetTT.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForTT, true); } else if (sMsisdn.StartsWith("88019")) { cssTemplate.Attributes.Add("href", "~/Css/StyleSheetBL.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); if (isSubscribe(sMsisdn)) { cancelSubscriptionBlink.Visible = true; } } else if (sMsisdn.StartsWith("88016")) { cssTemplate.Attributes.Add("href", "~/Css/StyleSheet.css"); // ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); } else if (sMsisdn.StartsWith("88018")) { Response.Redirect("Restricted.aspx"); } else { cssTemplate.Attributes.Add("href", "~/Css/StyleSheetBL.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); } string key = String.Empty; if (Request.Params["key"] != null) { key = Request.Params["key"].ToString(); Session["KEY"] = key; } string flagAccess = "0"; if (Session["flagAccess"] != null) { flagAccess = Session["flagAccess"].ToString(); } CA.ExecuteNonQuery("EXEC [Partner_Basket].[dbo].[sp_SetPortalAccess]'" + SOURCE_URL + "','" + sMsisdn + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + APN + "','VDOPortal','','" + oUAProfile.GetUserIP() + "','" + HS_OS + "'", "WAPDB"); if (!String.IsNullOrEmpty(key) && flagAccess == "0") { string accessKey = CA.getSingleValue("Exec spGET_OA_ACCESS'" + SOURCE_URL + "','BDTube','" + sMsisdn + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + APN + "','VDOPortal','" + key + "','" + oUAProfile.GetUserIP() + "','" + HS_OS + "'", "WAPDB").ToString(); Session["Accesskey"] = accessKey; Session["flagAccess"] = "1"; } Slider(); Fullvideo(); Shortvideo(); Fullmovie(); Newvideo(); BanglaNatok(); if (string.IsNullOrEmpty((sMsisdn))) { Page.ClientScript.RegisterStartupScript(this.GetType(), "CallMyFunction", " function callFunction() { $('#myModal').modal('hide');$('#myModal2').modal('hide'); $('#myModal3').modal('show'); }", true); } if (!string.IsNullOrEmpty((sMsisdn))) { lblNumber.Text = sMsisdn; lblNumber.Visible = true; lblNumber2.Visible = true; lblNumber2.Text = sMsisdn; } } //Session.Clear(); // Session.RemoveAll(); //Session.Abandon(); }
protected void Page_Load(object sender, EventArgs e) { string msisdn = ms.GetMSISDN(); if (!msisdn.StartsWith("8801")) { // Response.Redirect("CheckOperator.aspx"); } #region "MSISDN" if (Session["MSISDN"] == null) { try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); } } catch //(Exception ex) { sMsisdn = string.Empty; } } else { sMsisdn = Session["MSISDN"].ToString(); } #endregion "MSISDN" #region Profiling if (Session["HSOS"] == null) { HS_OS = "Android"; //pavel //string UAPROF_URL = oUAProfile.GetUserAgent(); //HSProfiling.Service profile = new HSProfiling.Service(); //var HSProfiling = profile.HansetDetection(UAPROF_URL, oUAProfile.GetUAProfileXWap()); //HS_OS = HSProfiling.OS; //UAPROF_URL = HSProfiling.UAXML; //pavel } else { HS_OS = Session["HSOS"].ToString(); } #endregion Profiling if (!isSubscribe(sMsisdn) && !sMsisdn.StartsWith("88018")) { //pavel Response.Redirect("Default.aspx"); } else if (!isSubscribe(sMsisdn) && sMsisdn.StartsWith("88018")) { //pavel Response.Redirect("~/Confirmation.aspx"); } if (HS_OS == "iOS") { smartphone = true; } else if (HS_OS == "Firefox") { smartphone = true; } else if (HS_OS == "Android") { smartphone = true; } else if (HS_OS == "Windows Phone") { smartphone = true; } else if (HS_OS == "Desktop") { smartphone = true; } if (smartphone) { } else { smartphone1.Style.Add("display", "none"); fphone.Style.Add("display", "block"); } string scriptForBl = @" $(document).ready(function() { $('.vdtitle').css('background-color','#58c1e6'); });"; cssTemplate.Attributes.Add("href", "~/Css/StyleSheetBL.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); imgMore.ImageUrl = "~/images/more.png"; CategoryCode = Request.QueryString["CategoryCode"].ToString().Trim(); if (CategoryCode.Equals("E564F048-1AD7-450A-BA81-47409FC58BFE") || CategoryCode.Equals("7E8B1C80-EB99-402C-BE1E-00E7F7C99A3F")) { lblten.Visible = true; if (sMsisdn.StartsWith("88019") || sMsisdn.StartsWith("88016")) { lblten.Text = "<b>Price:</b> Tk 20(+VAT, SD and SC)"; } else { lblten.Text = "<b>Price:</b> Tk 10(+VAT, SD and SC)"; } lblten.ForeColor = Color.Red; } if ((Request.QueryString["CategoryCode"].ToString() == "01A332B2-A207-44B9-9D3C-F85A1563571A") || (Request.QueryString["CategoryCode"].ToString() == "873E3EA9-3A28-484B-B74B-68C107DDD800")) { imgMore.Visible = false; } if (!IsPostBack) { if (Session["endUserId"] != null) { sMsisdn = Session["endUserId"].ToString(); } GpSubUnsubConfig(); Loadcontent(); //pavel loadAudioInfo(); LoadRelatedvideo(); sMobNo = ms.GetMSISDN(); bool subs = isSubscribe(sMobNo); cancelSubscriptionBlink.Visible = subs; // HS_MANUFAC = Session["HS_MANUFAC"].ToString(); //HS_MOD = Session["HS_MOD"].ToString(); //HS_DIM = Session["HS_DIM"].ToString(); //HS_OS = Session["HS_OS"].ToString(); //SOURCE_URL = System.Web.HttpContext.Current.Request.Url.AbsoluteUri; //UAPROF_URL = Session["UAPROF_URL"].ToString(); string PORTAL_N_SHORT = "JossBody/JB"; CA.ExecuteNonQuery("EXEC [AurkoCRM].[dbo].[spInsertPortalVisitLog]'" + SOURCE_URL + "','" + "JossBody:Home" + "','" + oUAProfile.Decode(sMsisdn) + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + APN + "','" + PORTAL_N_SHORT + "','" + HS_OS + "','" + Request.UserAgent + "','" + oUAProfile.GetUserIP() + "','13'", "Aurko"); } }
protected void Page_Load(object sender, EventArgs e) { string UAPROF_URL = oUAProfile.GetUserAgent(); try { if (Detection.fBrowserIsMobile()) { // Console.WriteLine("Mob"); } else { // Response.Redirect("http://jossbody.com/feature"); } } catch { } //===================================== added ======================== GpSubUnsubConfig(); //=====================================added======================== SOURCE_URL = System.Web.HttpContext.Current.Request.Url.AbsoluteUri; try { //pavel var UrlReferrer1 = Request.UrlReferrer; //pavel UrlReferrer = UrlReferrer1.ToString(); } catch { } string scriptForTT1 = @" $(document).ready(function() { $('.robititle').css('background-color','#58C1E6'); });"; if (Session["MSISDN"] != null) { string msisdn = Session["MSISDN"].ToString(); if (msisdn.StartsWith("88015")) { cssTemplate.Attributes.Add("href", "~/Css/StyleSheetTT.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForTT1, true); } } if (!IsPostBack) { #region "MSISDN" try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); Session["MSISDN"] = sMsisdn; subSmsisdn = sMsisdn.Substring(0, 5); ViewState["msisdn"] = sMsisdn; } } catch //(Exception ex) { sMsisdn = string.Empty; subSmsisdn = string.Empty; } //sMsisdn = "8801955279938"; #endregion "MSISDN" try { //HS_OS = "Android"; //pavel// //SOURCE_URL = System.Web.HttpContext.Current.Request.Url.AbsoluteUri; //HSProfiling.Service Profile = new HSProfiling.Service(); //var HSProfiling = Profile.HansetDetection(UAPROF_URL, oUAProfile.GetUAProfileXWap()); //HS_MANUFAC = HSProfiling.Manufacturer; //Session["HS_MANUFAC"] = HS_MANUFAC; //HS_MOD = HSProfiling.Model; //Session["HS_MOD"] = HS_MOD; //HS_DIM = HSProfiling.Dimension; //Session["HS_DIM"] = HS_DIM; //HS_OS = HSProfiling.OS; //Session["HS_OS"] = HS_OS; //UAPROF_URL = HSProfiling.UAXML; //Session["UAPROF_URL"] = UAPROF_URL; //pavel// } catch { } string scriptForBl = @" $(document).ready(function() { $('.robititle').css('background-color','#58C1E6'); });"; cssTemplate.Attributes.Add("href", "~/Css/StyleSheetBL.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); string key = String.Empty; if (Request.Params["key"] != null) { key = Request.Params["key"].ToString(); Session["key"] = key; } if (Session["key"] != null) { key = Session["key"].ToString(); } string flagAccess = "0"; if (Session["flagAccess"] != null) { flagAccess = Session["flagAccess"].ToString(); } string PORTAL_N_SHORT = "JossBody/JD"; //pavel CA.ExecuteNonQuery("EXEC [AurkoCRM].[dbo].[spInsertPortalVisitLog]'" + SOURCE_URL + "','" + "JossBody:Home" + "','" + oUAProfile.Decode(sMsisdn) + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + APN + "','" + PORTAL_N_SHORT + "','" + HS_OS + "','" + Request.UserAgent + "','" + oUAProfile.GetUserIP() + "','13'", "Aurko"); //===============================ORGINIAL================================== //CA.ExecuteNonQuery("EXEC [FitnessPortal].[dbo].[sp_SetPortalAccess]'" + SOURCE_URL + "','" + sMsisdn + "','" + oUAProfile.GetUserAgent() + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + "APN" + " ','" + "AMARFITNESS" + "','" + oUAProfile.GetUserIP() + "','" + HS_OS + "'", "WAPDB"); //===============================ORGINIAL================================== // CA.ExecuteNonQuery("EXEC [Partner_Basket].[dbo].[sp_SetPortalAccess]'" + SOURCE_URL + "','" + sMsisdn + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + "''" + " ','" + "VDOPortal" + "','','" + oUAProfile.GetUserIP() + "','" + HS_OS + "'", "WAPDB"); if (sMsisdn.StartsWith("88019") || sMsisdn.StartsWith("88015") || sMsisdn.StartsWith("88015") || sMsisdn.StartsWith("88017")) { // Response.Redirect("Restriction.aspx"); } if (!string.IsNullOrEmpty(key)) { if (Session["AccessID"] == null) { //DataSet dsAccess = CA.GetDataSet("EXEC spGET_OA_ACCESS'" + SOURCE_URL + "','" + SrvID + "','" + sMsisdn + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + APN + "','" + PORTAL_N_SHORT + "','" + CAM_KEY + "','" + oUAProfile.GetUserIP() + "','" + HS_OS + "','" + oUAProfile.GetUserAgent() + "','" + UrlReferrer + "','" + RequestFull + "'", "WAPDB"); //pavel DataSet accessKey = CA.GetDataSet("Exec spGET_OA_ACCESS'" + SOURCE_URL + "','BDTube','" + sMsisdn + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + APN + "','VDOPortal','" + key + "','" + oUAProfile.GetUserIP() + "','" + HS_OS + "'", "WAPDB"); //pavel if (accessKey != null) //pavel { //AccessID = "&aid=" + dsAccess.Tables[0].Rows[0]["ID"].ToString(); //pavel Session["AccessID"] = accessKey.Tables[0].Rows[0]["ID"].ToString(); //pavel} } } Slider(); FitnessGuide(); ExclusiveHotVideo(); MusicVideo(); DailyExcerciseVideo(); CelebrityWorkOutVideo(); HealthyRecepieVideo(); //ExclusiveVideo(); // BindVideoMostLiked(); Most(); bool subs = isSubscribe(sMsisdn); cancelSubscriptionBlink.Visible = subs; non.Visible = !subs; //if (string.IsNullOrEmpty((sMsisdn))) //{ // Page.ClientScript.RegisterStartupScript(this.GetType(), "CallMyFunction", " function callFunction() { $('#myModal').modal('hide');$('#myModal2').modal('hide'); $('#myModal3').modal('show'); }", true); //} if (!string.IsNullOrEmpty((sMsisdn))) { //lblNumber.Text = sMsisdn; //lblNumber.Visible = true; //lblNumber2.Visible = true; //lblNumber2.Text = sMsisdn; } } }
protected void Page_Load(object sender, EventArgs e) { #region "MSISDN" if (Session["MSISDN"] == null) { try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); } } catch //(Exception ex) { sMsisdn = string.Empty; } } else { sMsisdn = Session["MSISDN"].ToString(); } #endregion "MSISDN" if (sMsisdn.StartsWith("88018")) { Response.Redirect("Restricted.aspx"); } string scriptForBl = @" $(document).ready(function() { $('.vdtitle').css('background-color','#F16521'); });"; string scriptForTT = @" $(document).ready(function() { $('.vdtitle').css('background-color','#71BD44'); });"; if (sMsisdn.StartsWith("88015")) { cssTemplate.Attributes.Add("href", "~/Css/StyleSheetTT.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForTT, true); btnbanglamusic.ImageUrl = "~/images/tele.png"; btnbangladrama.ImageUrl = "~/images/tele.png"; btnenglishmusic.ImageUrl = "~/images/tele.png"; btnbanglamovie.ImageUrl = "~/images/tele.png"; btnhindimovie.ImageUrl = "~/images/tele.png"; btncelebritynews.ImageUrl = "~/images/tele.png"; btnmoviereview.ImageUrl = "~/images/tele.png"; btnholymoviereview.ImageUrl = "~/images/tele.png"; btngossip.ImageUrl = "~/images/tele.png"; } else if (sMsisdn.StartsWith("88019")) { cssTemplate.Attributes.Add("href", "~/Css/StyleSheetBL.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); btnbanglamusic.ImageUrl = "~/images/blink.png"; btnbangladrama.ImageUrl = "~/images/blink.png"; btnenglishmusic.ImageUrl = "~/images/blink.png"; btnbanglamovie.ImageUrl = "~/images/blink.png"; btnhindimovie.ImageUrl = "~/images/blink.png"; btncelebritynews.ImageUrl = "~/images/blink.png"; btnmoviereview.ImageUrl = "~/images/blink.png"; btnholymoviereview.ImageUrl = "~/images/blink.png"; btngossip.ImageUrl = "~/images/blink.png"; } else if (sMsisdn.StartsWith("88016")) { cssTemplate.Attributes.Add("href", "~/Css/StyleSheet.css"); //ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); btnbanglamusic.ImageUrl = "~/images/aro-video.png"; btnbangladrama.ImageUrl = "~/images/aro-video.png"; btnenglishmusic.ImageUrl = "~/images/aro-video.png"; btnbanglamovie.ImageUrl = "~/images/aro-video.png"; btnhindimovie.ImageUrl = "~/images/aro-video.png"; btncelebritynews.ImageUrl = "~/images/aro-video.png"; btnmoviereview.ImageUrl = "~/images/aro-video.png"; btnholymoviereview.ImageUrl = "~/images/aro-video.png"; btngossip.ImageUrl = "~/images/aro-video.png"; } else { cssTemplate.Attributes.Add("href", "~/Css/StyleSheetBL.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); btnbanglamusic.ImageUrl = "~/images/blink.png"; btnbangladrama.ImageUrl = "~/images/blink.png"; btnenglishmusic.ImageUrl = "~/images/blink.png"; btnbanglamovie.ImageUrl = "~/images/blink.png"; btnhindimovie.ImageUrl = "~/images/blink.png"; btncelebritynews.ImageUrl = "~/images/blink.png"; btnmoviereview.ImageUrl = "~/images/blink.png"; btnholymoviereview.ImageUrl = "~/images/blink.png"; btngossip.ImageUrl = "~/images/blink.png"; } if (!IsPostBack) { Banglamusic(); Bangladramaclips(); Englishmusic(); Hindimovie(); Banglamovie(); BollywoodCelebrityNews(); BollywoodMovieReview(); HollywoodMovieReview(); HollywoodGossip(); } }
protected void btnAdd_OnClick(object sender, ImageClickEventArgs e) { string number = oUAProfile.GetMSISDN(); Response.Redirect(!isSubscribe(number) ? "~/Nibondhon.aspx?Type=df" : "Default.aspx"); }
protected void Page_Load(object sender, EventArgs e) { #region "MSISDN" if (Session["MSISDN"] == null) { try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); } } catch //(Exception ex) { sMsisdn = string.Empty; } } else { sMsisdn = Session["MSISDN"].ToString(); } #endregion "MSISDN" if (sMsisdn.StartsWith("88018")) { Response.Redirect("Restricted.aspx"); } string scriptForBl = @" $(document).ready(function() { $('.vdtitle').css('background-color','#F16521'); });"; string scriptForTT = @" $(document).ready(function() { $('.vdtitle').css('background-color','#71BD44'); });"; if (sMsisdn.StartsWith("88015")) { cssTemplate.Attributes.Add("href", "~/Css/StyleSheetTT.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForTT, true); btnmoviereview.ImageUrl = "~/images/tele.png"; } else if (sMsisdn.StartsWith("88019")) { cssTemplate.Attributes.Add("href", "~/Css/StyleSheetBL.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); btnmoviereview.ImageUrl = "~/images/blink.png"; } else if (sMsisdn.StartsWith("88016")) { cssTemplate.Attributes.Add("href", "~/Css/StyleSheet.css"); //ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); btnmoviereview.ImageUrl = "~/images/aro-video.png"; } else { cssTemplate.Attributes.Add("href", "~/Css/StyleSheetBL.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); btnmoviereview.ImageUrl = "~/images/blink.png"; } #region MSISDN try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); } } catch //(Exception ex) { sMsisdn = string.Empty; } #endregion MSISDN if (!IsPostBack) { loadSheraList(); Session["shera"] = null; } }
protected void Page_Load(object sender, EventArgs e) { #region "MSISDN" if (Session["MSISDN"] == null) { try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); } } catch //(Exception ex) { sMsisdn = string.Empty; } } else { sMsisdn = Session["MSISDN"].ToString(); } #endregion "MSISDN" if (sMsisdn.StartsWith("88018")) { Response.Redirect("Restricted.aspx"); } string scriptForBl = @" $(document).ready(function() { $('.ribonMusic').css('background-color','#F16521'); });"; string scriptForTT = @" $(document).ready(function() { $('.ribonMusic').css('background-color','#71BD44'); });"; if (sMsisdn.StartsWith("88015")) { cssTemplate.Attributes.Add("href", "~/Css/StyleSheetTT.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForTT, true); } if (sMsisdn.StartsWith("88019")) { cssTemplate.Attributes.Add("href", "~/Css/StyleSheetBL.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); } }
protected void Page_Load(object sender, EventArgs e) { #region "MSISDN" if (Session["MSISDN"] == null) { try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); } } catch //(Exception ex) { sMsisdn = string.Empty; } } else { sMsisdn = Session["MSISDN"].ToString(); } #endregion "MSISDN" //if (sMsisdn.StartsWith("88018")) //{ // Response.Redirect("Restricted.aspx"); //} string scriptForBl = @" $(document).ready(function() { $('.vdtitle').css('background-color','#58c1e6'); });"; cssTemplate.Attributes.Add("href", "~/Css/StyleSheetBL.css"); ScriptManager.RegisterStartupScript(this, this.GetType(), "myScriptName", scriptForBl, true); if (!isSubscribe(sMsisdn)) { if (sMsisdn.StartsWith("88018")) { //pavel Response.Redirect("Confirmation.aspx"); } else { //pavel Response.Redirect("Default.aspx"); } } if (!IsPostBack) { if (Session["endUserId"] != null) { sMsisdn = Session["endUserId"].ToString(); } GpSubUnsubConfig(); //HS_MANUFAC = Session["HS_MANUFAC"].ToString(); //HS_MOD = Session["HS_MOD"].ToString(); //HS_DIM = Session["HS_DIM"].ToString(); //HS_OS = Session["HS_OS"].ToString(); SOURCE_URL = System.Web.HttpContext.Current.Request.Url.AbsoluteUri; string PORTAL_N_SHORT = "JossBody/JD"; //pavel CA.ExecuteNonQuery("EXEC [AurkoCRM].[dbo].[spInsertPortalVisitLog]'" + SOURCE_URL + "','" + "JossBody:Home" + "','" + oUAProfile.Decode(sMsisdn) + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','','" + PORTAL_N_SHORT + "','" + HS_OS + "','" + Request.UserAgent + "','" + oUAProfile.GetUserIP() + "','13'", "Aurko"); try { Catid = Request.QueryString["cid"].ToString(); HeaderText.Text = ""; if (Catid == "DB3FED39-4577-4268-9FA0-CD6C967ED512")//"447DC46C-3D03-48E5-9D9D-58744C89DBA3") { HeaderText.Text = "হেলদি রেসিপি ভিডিও"; } else if (Catid == "CDCB34D0-363C-4281-AFE4-AE289138179D")//"991CE47D-458A-41BC-91AF-B59A6BB711EF") { HeaderText.Text = "সেলিব্রিটি ওয়ার্ক আউট ভিডিও"; } else if (Catid == "B4955166-7C8B-4E0E-81DF-75A2FCCA6187")//"0BDA01AD-F846-4800-B34C-ADFE473D42FB") { HeaderText.Text = "ডেইলি ইয়োগা প্রাকটিস ভিডিও"; } else if (Catid == "7BA286C1-81B8-4267-BF0D-D6057CDC3CFE") { HeaderText.Text = "ওয়েট লস এক্সারসাইজ ভিডিও "; } else if (Catid == "D8958FA5-DFA9-40F0-B831-92771E5CA3F8") { HeaderText.Text = "হোম রেমেডি চ্যানেল ভিডিও"; } else if (Catid == "60579B0C-259E-435A-A227-BF2E546DDCFE") //"01A332B2-A207-44B9-9D3C-F85A1563571A") { HeaderText.Text = "ওয়ার্ক আউট মিউজিক ভিডিও"; } else if (Catid == "B6392C5F-5F5B-41BC-AC82-49CDA4169B11")//"873E3EA9-3A28-484B-B74B-68C107DDD800") { HeaderText.Text = "গ্ল্যামারাস ফিটনেস ভিডিও"; } else if (Catid == "A49ACD7E-010D-4937-9A74-AB9E8A9B36B7") { HeaderText.Text = "এক্সক্লোসিভ ভিডিও "; } } catch { } newvideo(Catid); } }
protected void Page_Load(object sender, EventArgs e) { #region "MSISDN" try { if (string.IsNullOrEmpty(oUAProfile.GetMSISDN()) || oUAProfile.GetMSISDN().StartsWith("Error")) { throw new Exception(); } else { sMsisdn = oUAProfile.GetMSISDN(); } } catch //(Exception ex) { sMsisdn = string.Empty; } #endregion "MSISDN" if (sMsisdn.StartsWith("88018") || sMsisdn.StartsWith("88016")) { DataSet ds = new DataSet(); ds = oCDA.GetDataSet("Exec [FitnessPortal].dbo.spChkTypeStatus '" + sMsisdn + "'", "WAPDB"); if (ds != null) { if (ds.Tables[0].Rows[0]["Type"].ToString() == "DA") { oCDA.ExecuteNonQuery("EXEC Robi_SDP.dbo.spInsertSubscriptionQ_To_SDP_channelID_1 '" + sMsisdn + "','0303900076','0300407908','Deletion'", "ROBI"); } else if (ds.Tables[0].Rows[0]["Type"].ToString() == "WA") { oCDA.ExecuteNonQuery("EXEC Robi_SDP.dbo.spInsertSubscriptionQ_To_SDP_channelID_1 '" + sMsisdn + "','0303900076','0300407910','Deletion'", "ROBI"); } else if (ds.Tables[0].Rows[0]["Type"].ToString() == "DNA") { oCDA.ExecuteNonQuery("EXEC Robi_SDP.dbo.spInsertSubscriptionQ_To_SDP_channelID_1 '" + sMsisdn + "','0303900077','0300407912','Deletion'", "ROBI"); } else if (ds.Tables[0].Rows[0]["Type"].ToString() == "WNA") { oCDA.ExecuteNonQuery("EXEC Robi_SDP.dbo.spInsertSubscriptionQ_To_SDP_channelID_1 '" + sMsisdn + "','0303900077','0300407914','Deletion'", "ROBI"); } else if (ds.Tables[0].Rows[0]["Type"].ToString() == "Not") { Response.Redirect("Default.aspx"); } } //oCDA.ExecuteNonQuery("EXEC [Robi_SDP].[dbo].[spDeactivate_CZ_SB] '" + sMsisdn + "','BdTube'", "ROBI"); ////EXEC Robi_SDP.dbo.spDeactivate_CZ_SB '8801814652546','BdTube' //oCDA.ExecuteNonQuery("EXEC [Partner_Basket].[dbo].[sp_setActiveDeactiveBdtube] '" + sMsisdn + "','0'", "BUDDY"); // oCDA.ExecuteNonQuery("EXEC [FitnessPortal].[dbo].[sp_setActiveDeactiveFitnessPortal] '" + sMsisdn + "','0'", "BUDDY"); } else { oCDA.ExecuteNonQuery("EXEC [FitnessPortal].[dbo].[sp_setActiveDeactiveFitnessPortal] '" + sMsisdn + "','0'", "BUDDY"); if (sMsisdn.StartsWith("88016")) { /*try * { * ATASE.Service objATASAE = new ATASE.Service(); * objATASAE.ASESubscribe(sMsisdn, "vubdtube", "Deletion"); * } * catch * { * } */ string offMSG = "Your Fitness service has been Stopped. To START send START Fitness to 6624 or visit http://wap.shabox.mobi/fitnessclub Help : 01674985965"; oCDA.ExecuteNonQuery("EXEC Partner_API.dbo.spSendSMS '" + sMsisdn + "','" + offMSG + "'", "WAPDB"); } else { string offMSG = "Fitness service is off now. To restart START Fitness and send to 6624."; //string offMSG = "Your BdTube service has been Stopped. To START send START BDTUBE to 6624 or visit http://bdtube.mobi/ Help : 01674985965"; oCDA.ExecuteNonQuery("EXEC Partner_API.dbo.spSendSMS '" + sMsisdn + "','" + offMSG + "'", "WAPDB"); } } }
protected void Page_Load(object sender, EventArgs e) { sMsisdn = oUAProfile.GetMSISDN(); string msisdn = ms.GetMSISDN(); if (!msisdn.StartsWith("8801")) { // Response.Redirect("CheckOperator.aspx"); } if (!isSubscribe(sMsisdn)) { //pavel Response.Redirect("Confirmation.aspx"); } userInfo(); try { type = Request.QueryString["type"].ToString(); if (type == "5") { string UAPROF_URL = Request.UserAgent; txtCategory.Text = "ফিটনেস সেশন "; //pavel dsPage = CA.GetDataSet("Exec [sp_PerPageAccessLog] '" + "fitness.mobi" + "','" + "FitnessSession" + "','" + sMsisdn + "','" + UAPROF_URL + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + HS_OS + "','" + oUAProfile.GetUserIP() + "'", "WAPDB"); } else if (type == "1") { string UAPROF_URL = Request.UserAgent; txtCategory.Text = "হেলথি ডায়েট"; //pavel dsPage = CA.GetDataSet("Exec [sp_PerPageAccessLog] '" + "fitness.mobi" + "','" + "HealthyDiet" + "','" + sMsisdn + "','" + UAPROF_URL + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + HS_OS + "','" + oUAProfile.GetUserIP() + "'", "WAPDB"); } else if (type == "6") { string UAPROF_URL = Request.UserAgent; txtCategory.Text = "সেলিব্রিটি ফিটনেস"; //pavel dsPage = CA.GetDataSet("Exec [sp_PerPageAccessLog] '" + "fitness.mobi" + "','" + "CelebirtyFitness" + "','" + sMsisdn + "','" + UAPROF_URL + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + HS_OS + "','" + oUAProfile.GetUserIP() + "'", "WAPDB"); } else if (type == "10") { string UAPROF_URL = Request.UserAgent; txtCategory.Text = "হোম রেমেডি"; //pavel dsPage = CA.GetDataSet("Exec [sp_PerPageAccessLog] '" + "fitness.mobi" + "','" + "HomeRedemy" + "','" + sMsisdn + "','" + UAPROF_URL + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + HS_OS + "','" + oUAProfile.GetUserIP() + "'", "WAPDB"); } else if (type == "12EE8772-F439-4354-AA4F-427BFA8D41A0") { string UAPROF_URL = Request.UserAgent; txtCategory.Text = "হেলথ টিপস"; //dsPage = CA.GetDataSet("Exec [sp_PerPageAccessLog] '" + "fitness.mobi" + "','" + "HealthTips" + "','" + sMsisdn + "','" + UAPROF_URL + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + HS_OS + "','" + oUAProfile.GetUserIP() + "'", "WAPDB"); } else if (type == "3A827B46-C8EA-4D1A-B1BE-3BFF59014168") { string UAPROF_URL = Request.UserAgent; txtCategory.Text = "ফুড টিপস"; // dsPage = CA.GetDataSet("Exec [sp_PerPageAccessLog] '" + "fitness.mobi" + "','" + "FoodTips" + "','" + sMsisdn + "','" + UAPROF_URL + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + HS_OS + "','" + oUAProfile.GetUserIP() + "'", "WAPDB"); } if (!isSubscribe(sMsisdn)) { // Response.Redirect("Default.aspx"); } } catch { //Response.Redirect("Default.aspx"); } if (!IsPostBack) { if (Session["endUserId"] != null) { sMsisdn = Session["endUserId"].ToString(); } GpSubUnsubConfig(); if (Request.UrlReferrer != null) { btnExit.PostBackUrl = "Default.aspx"; } Loadcontent(); LoadRelatedvideo(); sMobNo = ms.GetMSISDN(); // HS_MANUFAC = Session["HS_MANUFAC"].ToString(); //HS_MOD = Session["HS_MOD"].ToString(); //HS_DIM = Session["HS_DIM"].ToString(); //HS_OS = Session["HS_OS"].ToString(); SOURCE_URL = System.Web.HttpContext.Current.Request.Url.AbsoluteUri; string PORTAL_N_SHORT = "JossBody/JD"; //pavel CA.ExecuteNonQuery("EXEC [AurkoCRM].[dbo].[spInsertPortalVisitLog]'" + SOURCE_URL + "','" + "JossBody:Home" + "','" + oUAProfile.Decode(sMsisdn) + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','','" + PORTAL_N_SHORT + "','" + HS_OS + "','" + Request.UserAgent + "','" + oUAProfile.GetUserIP() + "','13'", "Aurko"); } }