Beispiel #1
0
    protected void LoadData()
    {
        DataTable dt = new DataTable();

        dt = clsCompany.SelectCompanyInfo(Session["Comid"].ToString());
        if (dt.Rows.Count > 0)
        {
            ViewState["comid"] = dt.Rows[0]["CompanyId"].ToString();
            txtPaypalId.Text   = dt.Rows[0]["PaypalEmailId"].ToString();
            txtwebsite1.Text   = dt.Rows[0]["WebSite"].ToString();
            txtwebsite12.Text  = dt.Rows[0]["WebSite"].ToString();
            txtwebsite13.Text  = dt.Rows[0]["WebSite"].ToString();
            if (dt.Rows[0]["WebSite"].ToString() != "" && dt.Rows[0]["WebSite"].ToString() != null)
            {
                pnlwebsitelabel.Visible = true;
                pnlwebsiteadd.Visible   = false;
            }
            else
            {
                pnlwebsitelabel.Visible = true;
                pnlwebsiteadd.Visible   = false;
            }
        }
        lblwebsite.Text = "http://www.eplaza.us/ShoppingCart" + " /default.aspx?Cid=" + Session["comid"];
        //lbldomain.Text = txtwebsite1.Text;
        lblcid.Text  = Session["comid"].ToString();
        lblcid1.Text = Session["comid"].ToString();
    }
Beispiel #2
0
    protected void LoadData()
    {
        DataTable dt    = new DataTable();
        string    cmpid = Session["Comid"].ToString();

        dt = clsCompany.SelectCompanyInfo(cmpid);
        if (dt.Rows.Count > 0)
        {
            ViewState["comid"] = dt.Rows[0]["CompanyId"].ToString();
            imgLogo.ImageUrl   = "~/ShoppingCart/images/" + dt.Rows[0]["CompanyLogo"].ToString();
        }
        else
        {
            Panel1.Visible  = true;
            pnllogo.Visible = false;
        }
    }
Beispiel #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            // string sidd = BZ_Common.BZ_Encrypted("5");
            if (Request.QueryString["Cid"] != null)
            {
                string companyid = Request.QueryString["Cid"];
                lblcid.Text = companyid;
                Boolean Comp__Actve__Status = CompanyWizard.Company_Active_Status(companyid);
                Boolean Comp__Licen__Active = CompanyWizard.Company_LicenseExpire_Status(companyid);
                Boolean Server__Active      = ServerWizard.Server_Active_Status(companyid);

                if (Comp__Actve__Status == true && Comp__Licen__Active == true && Server__Active == true)
                {
                    DataTable DTGetSid = CompanyWizard.SelectCompanyInfo(companyid);
                    string    sid      = DTGetSid.Rows[0]["ServerId"].ToString();
                    lblsid.Text = sid;
                    FillFrid(lblsid.Text);
                }
                else if (Comp__Actve__Status == false)
                {
                    lblmsg.Text = "Company not active ";
                }
                else if (Comp__Licen__Active == false)
                {
                    lblmsg.Text = "License Expired";
                }
                else if (Server__Active == false)
                {
                    lblmsg.Text = "Server Inactive";
                }
            }
            else
            {
                lblmsg.Text = "No any recrd for company";
            }
        }
    }