Avatar of gtrapp
gtrapp
 asked on

Double login screen when redirecting back to login

Please see the attachment. This will explain thing better.

Basicaly, when the Back to Login Page button is selected, the application goes to a page with double login pages. I only need the login page showing once at the same time.

The code behind for the Back to Login Page button has a Response.Redirect. I have tried three ways, but no luck.

1.      Response.Redirect("Login.aspx");
2.      Response.Redirect("MainMenu.aspx");
3.      Response.Redirect("Default.aspx");

I have also tried and no luck:

Session.Clear();
FormsAuthentication.SignOut();
Response.Redirect("Login.aspx",true);      

This is somebody's code so I am not entirely familar with it. Please see the screen shot. Any suggestions on where to look to have one Login screen showing up?


Screen-Shots.doc
.NET ProgrammingMicrosoft DevelopmentEditors IDEs

Avatar of undefined
Last Comment
gtrapp

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
l-cm

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Joel Coehoorn

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
l-cm

Master pages was a new concept for .net 2.0 and not a feature in 1.1.  I agree with jcoehoorn that master pages are great when you can use them but the site would have to be upgraded to 2.0.
gtrapp

ASKER
When that button is selected, this is executed: Response.Redirect("LogOut.aspx"); This logs out of the application, but you still see two frames.

Is there code I can check to confirm pages are using frames?
Here is the MainMenu.aspx:
 
<%@ Page language="c#" Codebehind="MainMenu.aspx.cs" AutoEventWireup="false" Inherits="pbFamily.MainMenu" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>MainMenu</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script src="js/listmenu.js" type="text/javascript"></script>
		<LINK href="eddy-main.css" type="text/css" rel="stylesheet">
		<base target="content">
		<script language="JavaScript" src="https://seal.networksolutions.com/siteseal/javascript/siteseal.js" type="text/javascript"></script>
	</HEAD>
	<body MS_POSITIONING="FlowLayout" onload="initMenus()" leftMargin="0" topMargin="0" rightMargin="0">
		<form id="Form1" runat="server">
			<div id="contentLeft">
				<table>
					<tr vAlign="top">
						<td>
							<p align="center"><a href="Welcome.aspx"><img src="images/EddyLogo.jpg"></a></p>
							<h1><a href="Welcome.aspx"><FONT size="4">Eddy Family</FONT></a></h1>
							<div id="menu">
								<ul class="treemenu singleopen keepopen">
									<li class="treenode">
										<a href="Welcome.aspx">Home</a>
									<li class="treenode">
									<A href="http://discussion.pbfamily.com/Lists/Team%20Discussion/AllItems.aspx" target="_blank">Family Discussion</a>
									<LI class="treenode">
										<a href="EddyFamily.aspx">Eddy Family</a>
										<ul class="submenu">
											<LI>
												<a href="EddyFamily/photos.aspx">Photo Albums</a>
											<LI>
												<a href="EddyFamily/videos.aspx">Videos</a>
											<LI>
												<a href="EddyFamily/FamilyTree.aspx">Family Tree</a>
											<LI>
												<a href="EddyFamily/EddyFamilyBook.aspx">Eddy Family Book</a>
											<LI>
												<a href="EddyFamily/Extras.aspx">Extras</a>
											<li class="treenode">
												<a href="">Profiles</a> 
												<!-- The following list items have been coded against by Fox-Industries. -->
												<ul class="submenu2">
													<li>
														<DIV id="lnkPersonal" runat="server"><A href="personalinfo.aspx">Personal</A></DIV>
													<li>
														<DIV id="lnkWorkExperience" runat="server"><A href="WorkExperience.aspx">Work 
																Experience</A></DIV>
													<LI>
														<DIV id="lnkEducation" runat="server"><A href="education.aspx">Education</A></DIV>
													<LI>
														<DIV id="lnkSkillsHobbies" runat="server"><A href="Skillshobbies.aspx">Skills &amp; 
																Hobbies</A></DIV>
													<li>
														<DIV id="lnkFamily" runat="server"><a href="Family.aspx">Family</a></DIV>
													<li>
														<DIV id="lnkEditLookup" runat="server"><a href="LookupTables.aspx">Edit Lookup Tables</a></DIV>
													</li>
												</ul>
											<li>
												<a href="eddyfamily/reports.aspx">Reports&nbsp;&amp; Mass Emails</a>
											</li>
										</ul>
									<li class="treenode">
										<a href="FamilyGovernance.aspx">Family Governance</a>
										<UL class="submenu">
											<LI>
												<a href="Governance/Constitution.aspx">Constitution</a>
											<LI>
												<a href="Governance/EmploymentPolicy.aspx">Employment Policy</a></LI>
										</UL>
										<p></p>
									<li class="treenode">
										<a href="AnnualMeeting.aspx">Annual Meetings</a>
										<UL class="submenu">
											<LI>
												<a href="">2007</a>
												<UL class="submenu2">
													<li>
														<A href="AnnualMeetings/2007-Agenda.aspx">Agenda</A>
													<LI>
														<A href="AnnualMeetings/2007-Agenda-Kids.aspx">Kid's Agenda</A>
													<!-- save for later
													<li>
														<a href="AnnualMeetings/2006-Minutes.aspx">Meeting Minutes</a>
													<LI>
														<A href="AnnualMeetings/2006-Presentations.aspx">Presentations</A>
													-->
													<LI>
														<A href="AnnualMeetings/2007-Photo.aspx">Group Photo</A></LI>
												</UL>
											<LI>
												<a href="">2006</a>
												<UL class="submenu2">
													<li>
														<A href="AnnualMeetings/2006-Agenda.aspx">Agenda</A>
													<LI>
														<A href="AnnualMeetings/2006-Agenda-Kids.aspx">Kid's Agenda</A>
													<!-- save for later
													<li>
														<a href="AnnualMeetings/2006-Minutes.aspx">Meeting Minutes</a>
													-->
													<LI>
														<A href="AnnualMeetings/2006-Presentations.aspx">Presentations</A>
													<LI>
														<A href="AnnualMeetings/2006-Photo.aspx">Group Photo</A>
													</LI>
												</UL>
											<LI>
												<a href="">2005</a>
												<ul class="submenu2">
													<li>
														<A href="AnnualMeetings/2005-Agenda.aspx">Agenda</A>
													<LI>
														<A href="AnnualMeetings/2005-Agenda-Kids.aspx">Kid's Agenda</A>
													<li>
														<a href="AnnualMeetings/2005-Minutes.aspx">Meeting Minutes</a>
													<LI>
														<A href="AnnualMeetings/2005-Presentations.aspx">Presentations</A>
													<LI>
														<A href="AnnualMeetings/2005-Photo.aspx">Group Photo</A>
													</LI>
												</ul>
											<LI>
												<a href="">2004</a>
												<ul class="submenu2">
													<li>
														<a href="AnnualMeetings/2004-Agenda.aspx">Agenda</a>
													<li>
														<a href="AnnualMeetings/2004-Minutes.aspx">Meeting Minutes</a>
													<li>
														<a href="AnnualMeetings/2004-SHMinutes.aspx">Shareholder Meeting Minutes</a>
													</li>
												</ul>
											<LI>
												<a href="">2003</a>
												<UL class="submenu2">
													<li>
														<a href="AnnualMeetings/2003-Agenda.aspx">Agenda</a>
													<li>
														<a href="AnnualMeetings/2003-Minutes.aspx">Meeting Minutes</a>
													<li>
														<a href="AnnualMeetings/2003-SHMinutes.aspx">Shareholder Meeting Minutes</a>
													</li>
												</UL>
											<LI>
												<a href="">2002</a>
												<ul class="submenu2">
													<li>
														<a href="AnnualMeetings/2002-Agenda.aspx">Agenda</a>
													<li>
														<a href="AnnualMeetings/2002-Minutes.aspx">Meeting Minutes</a>
													<li>
														<a href="AnnualMeetings/2002-SHMinutes.aspx">Shareholder Meeting Minutes</a>
													</li>
												</ul>
											<li>
												<a href="">2001</a>
												<ul class="submenu2">
													<li>
														<a href="AnnualMeetings/2001-Agenda.aspx">Agenda</a>
													<li>
														<a href="AnnualMeetings/2001-Minutes.aspx">Meeting Minutes</a>
													<li>
														<a href="AnnualMeetings/2001-SHMinutes.aspx">Shareholder Meeting Minutes</a>
													<li>
														<a href="AnnualMeetings/2001-Photo.aspx">Group Photo</a>
													</li>
												</ul>
											<li>
												<a href="">2000</a>
												<ul class="submenu2">
													<li>
														<a href="AnnualMeetings/2000-Agenda.aspx">Agenda</a>
													<li>
														<a href="AnnualMeetings/2000-Minutes.aspx">Meeting Minutes</a>
													<li>
														<a href="AnnualMeetings/2000-SHMinutes.aspx">Shareholder Meeting Minutes</a>
													<li>
														<a href="AnnualMeetings/2000-Photo.aspx">Group Photo</a>
													</li>
												</ul>
											<li>
												<a href="">1999</a>
												<ul class="submenu2">
													<li>
														<a href="AnnualMeetings/1999-Photo.aspx">Group Photo</a>
													</li>
												</ul>
											</li>
										</UL>
										<p></p>
									<li class="treenode">
										<a href="FamilyCouncil.aspx">Eddy Family Council</a>
										<ul class="submenu">
											<li>
												<a href="Council/News.aspx">News</a>
											<li>
												<a href="">Meeting Minutes</a>
												<ul class="submenu2">
													<li>
														<a href="Council/2007Minutes.aspx">2007</a>
													<li>
														<a href="Council/2006Minutes.aspx">2006</a>
													<li>
														<a href="Council/2005Minutes.aspx">2005</a>
													<li>
														<a href="Council/2004Minutes.aspx">2004</a></li>
												</ul>
											<li>
												<a href="ReportData/rFCReps.pdf">FC Contact Info</a>
											<li class="treenode">
												<a href="Council/Education.aspx">Education</a>
												<ul class="submenu2">
													<li>
														<a href="Council/Education/AnnualReportGuide.aspx">Guide to Reading the Annual 
															Report</a>
													</li>
												</ul>
											</li>
										</ul>
									<LI class="treenode">
										<a href="PBCompanies.aspx">Port Blakely Companies</a>
										<ul class="submenu">
											<li>
												<a href="PBCompanies/WhatsNew.Aspx">News, Links, and Resouces</a>
											<li>
												<a href="PBCompanies/Employment.Aspx">Employment</a>
											<LI>
												<a href="PBCompanies/BofD.Aspx">Board Of Directors</a>
												<ul class="submenu2">
													<LI>
														<a href="PBCompanies/BofD-CS.Aspx">Committee Structure</a>
													<LI>
														<a href="PBCompanies/BofD-Policy.Aspx">Family Director Policy</a>
													<li>
														<a href="PBCompanies/Profiles/jewarjone-b.htm">Profiles</a></li>
												</ul>
											<li>
												<a href="PBCompanies/Management.Aspx">Management Team</a>
												<ul class="submenu2">
													<li>
														<a href="PBCompanies/Profiles/jewarjone.htm">Profiles</a>
													<li>
														<a href="PBCompanies/EntityChart.aspx">Organization Chart</a>
													<li>
														<a href="PBCompanies/LegalEntities.aspx">Entity Chart</a></li>
												</ul>
											</li>
										</ul>
									<li class="treenode">
										<a href="Contacts.aspx">Contacts</a>
									<li class="treenode">
										<a href="LogOut.aspx" target="_parent">Log Out</a>
									<li class="treenode">
										<a href="FAQ.htm">Help</a>
									</li>
								</ul>
							</div>
							<form id="input" action method="post" class="treenode">
								<BR>
								<br>
								<p class="treenode">Search</p>
								<P class="treenode">
									<asp:TextBox id="txtSearch" runat="server" ToolTip="Enter Search String"></asp:TextBox>&nbsp;
									<asp:Button id="cmdGo" runat="server" Text=" Go " CssClass="buttonStyle"></asp:Button></P>
									<br>
							<asp:button id="cmdRequestLoginHelp" runat="server" Visible=true ToolTip="Click if you need to request login help"
					Width="152px" Text="Request Help" CssClass="buttonStyle" CausesValidation="false"></asp:Button>
				
							</form>
							<!--
							SiteSeal Html Builder Code:
							Shows the logo at URL https://seal.networksolutions.com/images/basicsqgreen.gif
							Logo type is  ("NETSB")
							//-->
							<p align=right>
	<script language="JavaScript" type="text/javascript"> SiteSeal("https://seal.networksolutions.com/images/basicsqgreen.gif", "NETSB", "none");</script>
							</p>
						</td>
					</tr>
				</table>
			</div>
		</form>
	</body>
</HTML>
 
 
Here is the Login.aspx:
 
<%@ Page language="c#" Codebehind="Login.aspx.cs" AutoEventWireup="false" Inherits="pbFamily.Login" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Eddy Family Login</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="Eddy Family Login" name="keywords">
		<meta content="The login page for the Eddy family's private site" name="description">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK media="screen" href="eddy-main.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body>
		<div id="contentLeft">
			<p align="center"><IMG src="images/EddyLogo.jpg"></p>
			<H1>Eddy Family</H1>
			<form class="login" style="WIDTH: 208px; HEIGHT: 250px" action="" method="post" runat="server">
				<DIV style="DISPLAY: inline; WIDTH: 126px; HEIGHT: 16px" ms_positioning="FlowLayout">Login 
					Name:</DIV>
				<asp:requiredfieldvalidator id="vrfLoginName" runat="server" ToolTip="-Login Name is required." ControlToValidate="txtLoginName"
					ErrorMessage="-Login Name is required.">*</asp:requiredfieldvalidator><asp:textbox id="txtLoginName" runat="server" Width="146px"></asp:textbox>
				<DIV style="DISPLAY: inline; WIDTH: 126px; HEIGHT: 18px" ms_positioning="FlowLayout">Password:</DIV>
				<asp:requiredfieldvalidator id="vrfPassword" runat="server" ToolTip="-Password is required" ControlToValidate="txtPassword"
					ErrorMessage="-Password is required">*</asp:requiredfieldvalidator><asp:textbox id="txtPassword" runat="server" Width="146" TextMode="Password"></asp:textbox><BR>
				<BR>
				<asp:button id="cmdLogin" runat="server" ToolTip="Click to Login" Width="55px" CssClass="buttonStyle"
					Text="Login"></asp:button><BR>
				<BR>
				<asp:button id="cmdForgotPassword" runat="server" ToolTip="Click if you need to request a new password"
				Width="152px" CssClass="buttonStyle" Text="Forgot Password" CausesValidation="False"></asp:button><BR>
				<BR>
				<asp:button id="cmdRequestLoginHelp" runat="server" ToolTip="Click if you need to request login help"
					Width="152px" Text="Request Help" CssClass="buttonStyle" CausesValidation="False"></asp:Button>
				<br>
				<BR>
				<asp:label id="lblErrorMsg" runat="server"></asp:label><BR>
				<asp:validationsummary id="vlsLoginPage" runat="server" ShowSummary="False" ShowMessageBox="True" DisplayMode="List"
					HeaderText="Error:"></asp:validationsummary>
				<P>&nbsp;</P>
				<DIV><span class="logina"><A href="Requirements.htm">Requirements for this site</A></span></DIV>
				<P>&nbsp;</P>
			</form>
		</div>
		<div id="contentRight">
			<div id="flashintro">
				<OBJECT height="400" width="500" VIEWASTEXT>
					<PARAM NAME="movie" VALUE="flash/eddy.swf">
					<embed src="flash/eddy.swf" width="500" height="400"> </embed>
				</OBJECT>
				<DIV>&nbsp;</DIV>
			</div>
		</div>
	</body>
</HTML>

Open in new window

gtrapp

ASKER
I found <frameset cols="250,*"> </frameset> in the code. Its in the default.aspx page. So, its using frames. I am using .Net 1.1, but I don't have time rewrite the code.

Thanks!
Your help has saved me hundreds of hours of internet surfing.
fblack61
Joel Coehoorn

You might be able to use javascript to get a handle to the parent frame in the browser, but my javascript isn't that good right now.
gtrapp

ASKER
Thanks. what I did was take out the button so users would need to use the back button to go back to the login screen.

Do you know how long .net 1.1 will be supported? I have this .net 1.1 web application that is important to the company.