Esempio n. 1
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            btnCreate.Visible    = true;
            spanLanguage.Visible = true;
            string asppath = Settings.AspPath;

            lblDomain.Text = "." + TrialHelper.GetParentDomain();
            if (asppath != null)
            {
                imgHeader.ImageUrl = asppath + "images/SignupHeader.aspx";
            }
            lbRepeat.Visible = false;
            if (!IsPostBack)
            {
                if (locale != null && locale != String.Empty)
                {
                    Thread.CurrentThread.CurrentCulture   = new CultureInfo(locale);
                    Thread.CurrentThread.CurrentUICulture = new CultureInfo(locale);
                }
                else
                {
                    SetUserLocale();
                }

                if (CancelLink == null || CancelLink == String.Empty)
                {
                    btnCancel.Visible = false;
                }
                BindDefaultValues();
                tr4.Visible = false;
            }
            else if (ddLanguage.SelectedItem != null)
            {
                Thread.CurrentThread.CurrentCulture   = new CultureInfo(ddLanguage.SelectedItem.Value);
                Thread.CurrentThread.CurrentUICulture = new CultureInfo(ddLanguage.SelectedItem.Value);
            }

            cbConfirm.Attributes.Add("onclick", "EnableButtons(this);");

            btnCreate.Value    = LocRM.GetString("strCreateMyPortal");
            btnCreate.Disabled = !cbConfirm.Checked;
            btnCreate.Attributes.Add("onclick", "CreateTrial();");

            btnCancel.Attributes.Add("onclick", "DisableButtons(this);");
            lbCreate.Attributes.Add("onclick", "DisableButtons(this);");
            lbRepeat.Attributes.Add("onclick", "DisableButtons(this);");
            cbConfirm.Text = LocRM.GetString("IAgree");
            lblTerms.Text  = "<a href='javascript:OpenTerms()'>" + LocRM.GetString("IAgree2") + "</a>";
            cbSendMe.Text  = LocRM.GetString("strSendMe");
            cbCallMe.Text  = LocRM.GetString("strCallMe");
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            lblErrorDomainMessage.Text = "";

            if (Request["TestMode"] != null)
            {
                CManage.AppendDebugInfo(string.Empty);
            }

            try
            {
                lblParentDomain.Text = TrialHelper.GetParentDomain();
            }
            catch
            {
                lblErrorDomainMessage.Text = "Ошибка при вызове веб сервиса";
            }
        }
Esempio n. 3
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            if (_locale != null && _locale != String.Empty)
            {
                Thread.CurrentThread.CurrentCulture   = new CultureInfo(_locale);
                Thread.CurrentThread.CurrentUICulture = new CultureInfo(_locale);
            }
            Response.ContentType = "text/plain";
            string sDomain  = string.Format("{0}.{1}", _name, TrialHelper.GetParentDomain());
            bool   isExists = TrialHelper.DomainExists(sDomain);

            if (isExists)
            {
                Response.Write("1" /*LocRM.GetString("strDomainExists")*/);
            }
            else
            {
                Response.Write("0" /*LocRM.GetString("strDomainNotExists")*/);
            }
        }
Esempio n. 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     lblErrorDomainMessage.Text = "";
     lblParentDomain.Text       = TrialHelper.GetParentDomain();
 }