public WebReply btnLogin_Click() { Sys.SetObjectValue("Login", "Caption1", "Enter Username and Password and click Login."); // Authenticate User bool bAuth = VerifyUser(Sys.GetObjectValue("Login", "Username"), Sys.GetObjectValue("Login", "Password"), ref Sys, false); Sys.SetObjectValue("Login", "Caption1", String.Empty); if (bAuth) { //Log in to First System Page WebReply wr = Sys.Redirect("Home", this); WebReplyPackage wrp1 = wr.Packages[0]; wrp1.Javascript = "location.reload();"; return(wr); } // Present Log in Screen return(LoginSection()); }