Quantcast
Channel: BugNET Issue Tracker (Moved to GitHub)
Viewing all articles
Browse latest Browse all 2179

New Post: Landing page

$
0
0
I added the following code:
            if (ConfigurationManager.AppSettings["StartLoginPage"] != null && Convert.ToBoolean(ConfigurationManager.AppSettings["StartLoginPage"]))
                if (!Context.User.Identity.IsAuthenticated)
                    Response.Redirect("~/Account/Login.aspx");
inside the if (!Page.IsPostBack) conditional block.

The first line isn't required, I only added it so that the option was configurable with a setting in the config file.

Viewing all articles
Browse latest Browse all 2179

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>