コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {

        //if (ConfigurationManager.AppSettings["sslSitePath"].Contains("htts"))
        //{
            SslHelper sslHelper = new SslHelper();
            sslHelper.EnsureHTTPS();  
        //}


        if (!IsPostBack)
        {
            KulanicHosgeldinYazisi();  
        }
    }
コード例 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
     
        Page.Header.DataBind();
        string sLocalPath = Request.Url.LocalPath;

        if (HttpContext.Current.Request.IsSecureConnection &&
            !sLocalPath.Contains("/Kullanici/Kayit") && !sLocalPath.Contains("/Market/Sepet"))
        {
            SslHelper sslHelper = new SslHelper();
            sslHelper.EnsureHTTP();
        }


        if (!IsPostBack)
        {
            KulanicHosgeldinYazisi();

            if (Request.QueryString["user"] == "ok")
            {
                CookieBrowserKontlor();
            }
        }
    }