Ejemplo n.º 1
0
    protected void OnClick(object sender, EventArgs e)
    {
        try
        {
            string UAPROF_URL = oUAProfile.GetUserAgent();
            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;
            HS_MOD     = HSProfiling.Model;
            HS_DIM     = HSProfiling.Dimension;
            HS_OS      = HSProfiling.OS;
            UAPROF_URL = HSProfiling.UAXML;

            if (HS_OS == "Desktop")
            {
                Response.Redirect("http://wap.shabox.mobi/Error/Default.aspx?id=OS");
            }
            else if (HS_MANUFAC == "Generic" || HS_MOD == "Generic")
            {
                Response.Redirect("http://wap.shabox.mobi/Error/Default.aspx?id=Mobile");
            }
        }
        catch
        {
            Response.Redirect("http://wap.shabox.mobi/Error/Default.aspx?id=OS");
        }
        Response.Redirect("RobiFirstPAge.aspx");
    }
Ejemplo n.º 2
0
    protected void addButton_Click(object sender, ImageClickEventArgs e)
    {
        addC = "2nd";

        #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
        {
            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;
            HS_MOD     = HSProfiling.Model;
            HS_DIM     = HSProfiling.Dimension;
            HS_OS      = HSProfiling.OS;
            UAPROF_URL = HSProfiling.UAXML;
        }
        catch { }

        string AccessId = string.Empty;
        string key      = string.Empty;

        if (Session["Accesskey"] != null)
        {
            AccessId = Session["Accesskey"].ToString();
        }

        if (Session["KEY"] != null)
        {
            key = Session["KEY"].ToString();

            //oCDA.ExecuteNonQuery("Exec spGET_OA_SUCCESS '" + SOURCE_URL + "','BDTube','" + sMsisdn + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + APN + "','VDOPortal','" + key + "','" + HS_OS + "','" + AccessId + "','" + UAPROF_URL + "',''", "WAPDB");
            CA.ExecuteNonQuery("EXEC [spGET_OA_ACCESS_SECOND_PAGE] '" + SOURCE_URL + "','BDTube','" + sMsisdn + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + APN + "','VDOPortal','" + key + "','" + HS_OS + "','" + AccessId + "','" + UAPROF_URL + "',''", "WAPDB");
        }

        Page.ClientScript.RegisterStartupScript(this.GetType(), "CallMyFunction", " function  callFunction() { $('#myModal').modal('hide');$('#myModal2').modal('show'); $('#myModal3').modal('hide'); }", true);
    }
Ejemplo n.º 3
0
    protected void NishchitoButton_Click(object sender, ImageClickEventArgs e)
    {
        nisC = "3";
        string number = ViewState["msisdn"] == null ? "" : ViewState["msisdn"].ToString();

        string AccessId   = string.Empty;
        string key        = string.Empty;
        string UAPROF_URL = oUAProfile.GetUserAgent();

        try
        {
            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;
            HS_MOD     = HSProfiling.Model;
            HS_DIM     = HSProfiling.Dimension;
            HS_OS      = HSProfiling.OS;
            UAPROF_URL = HSProfiling.UAXML;
        }
        catch { }
        // string UAPROF_URL = oUAProfile.GetUserAgent();

        if (Session["AccessID"] != null)
        {
            AccessId = Session["AccessID"].ToString();
        }

        if (Session["key"] != null)
        {
            key = Session["key"].ToString();

            CA.ExecuteNonQuery("Exec spGET_OA_SUCCESS '" + SOURCE_URL + "','BDTube','" + number + "','" + HS_MANUFAC + "','" + HS_MOD + "','" + HS_DIM + "','" + APN + "','VDOPortal','" + key + "','" + HS_OS + "','" + AccessId + "','" + UAPROF_URL + "',''", "WAPDB");
        }

        if (!string.IsNullOrEmpty(number))
        {
            DataSet DNDMno = CA.GetDataSet("EXEC [WapPortal_CMS].dbo.spCheckDNDMno '" + number + "','BDTube','6624'",
                                           "WAPDB");
            string DNDMobileNo = string.Empty;
            try
            {
                DNDMobileNo = DNDMno.Tables[0].Rows[0].ItemArray[0].ToString();
            }
            catch
            {
            }


            if (DNDMobileNo == "Y")
            {
                //Response.Redirect("~/ErrorMessage.aspx?type=dnd");
            }

            if (!isSubscribe(number))
            {
                string ChargingReply = string.Empty;
                ChargingReply = CGW(number);

                if (ChargingReply == "success")
                {
                    //CA.ExecuteNonQuery(
                    //    "EXEC [Partner_Basket].[dbo].[sp_AddSubscriptionBDTUBE] '" + number + "','000','0','1','" +
                    //    HS_MOD + "','" + HS_MANUFAC + "'", "WAPDB");

                    CA.ExecuteNonQuery(
                        "EXEC [FitnessPortal].[dbo].[sp_AddSubscriptionFitnessPortal] '" + number + "','000','0','1','" +
                        HS_MOD + "','" + HS_MANUFAC + "'", "WAPDB");
                    //oCDA.ExecuteNonQuery("EXEC [Partner_Basket].[dbo].[sp_AddSubscriptionBDTUBE_history] '" + sMsisdn + "','000','0','1','" + HS_MOD + "','" + HS_MANUFAC + "'", "WAPDB");

                    if (number.StartsWith("88016"))
                    {
                        //string MSG = "You have successfully subscribed to BD Tube service @Tk2+VAT+SD+SC/day(auto-renewal).To unsubscribe,sms STOP BDTUBE to 6624.Help:01674985965(Call charge apply)";

                        //oCDA.ExecuteNonQuery("EXEC Partner_API.dbo.spSendSMS '" + sMsisdn + "','" + MSG + "'", "WAPDB");
                    }
                    else
                    {
                        //string MSG = "Welcome to BDTube service. Visit http://bdtube.mobi to watch latest and exclusive videos. Cost:TK.2 daily. SMS STOP BDTUBE to 6624 to cancel.";
                        string MSG = null;
                        if (number.StartsWith("88019"))
                        {
                            MSG =
                                "Your subscription of Fitness service has been confirmed @Taka 2 (+VAT,SD+SC)/day auto-renewal.To unsubscribe send STOP Fitness to 6624. Help: 01992303765";
                        }
                        else if (number.StartsWith("88015"))
                        {
                            MSG =
                                "Your subscription of Fitness service has been confirmed @Taka 2 (+VAT,SD+SC)/day auto-renewal.To unsubscribe send STOP Fitness to 6624. Help: 01534524714";
                        }
                        else if (number.StartsWith("88018"))
                        {
                            MSG =
                                "Your subscription of Fitness service has been confirmed @Taka 2 (+VAT,SD+SC)/day auto-renewal.To unsubscribe send STOP Fitness to 6624. Help: 8801814426426";
                        }

                        CA.ExecuteNonQuery("EXEC Partner_API.dbo.spSendSMS '" + number + "','" + MSG + "'", "WAPDB");
                    }
                }
            }


            Page.ClientScript.RegisterStartupScript(this.GetType(), "CallMyFunction",
                                                    " function  callFunction() { $('#myModal').modal('show');$('#myModal2').modal('hide'); $('#myModal3').modal('hide'); }",
                                                    true);
        }
    }
Ejemplo n.º 4
0
    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;
        }
    }
Ejemplo n.º 5
0
    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();
                }
            }
        }
    }
Ejemplo n.º 6
0
    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();
    }