protected void Page_Load(object sender, EventArgs e) { //if (ConfigurationManager.AppSettings["sslSitePath"].Contains("htts")) //{ SslHelper sslHelper = new SslHelper(); sslHelper.EnsureHTTPS(); //} if (!IsPostBack) { KulanicHosgeldinYazisi(); } }
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(); } } }