Solved

Double login screen when redirecting back to login

Posted on 2008-06-18
7
11,983 Views
Last Modified: 2013-12-16
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
0
Comment
Question by:gtrapp
  • 3
  • 2
  • 2
7 Comments
 
LVL 8

Accepted Solution

by:
l-cm earned 125 total points
ID: 21815429
Hard to tell exactly what is happening since there is no code attached.  It seems that it is in a frame and when you redirect the inside content is redirecting instead of the whole page.  I noticed that there is a "log out" link on the navigation, have you tried executing the same function or code when you select the Back to Login Page button instead of doing a redirect?
0
 
LVL 18

Assisted Solution

by:jcoehoorn
jcoehoorn earned 125 total points
ID: 21815493
Agree that this is probably inside a frame {shudders}.  I'd re-work the whole thing to use a Master page for the frame content on the left.
0
 
LVL 8

Expert Comment

by:l-cm
ID: 21815538
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.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:gtrapp
ID: 21815574
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

0
 

Author Comment

by:gtrapp
ID: 21815644
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!
0
 
LVL 18

Expert Comment

by:jcoehoorn
ID: 21816160
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.
0
 

Author Comment

by:gtrapp
ID: 21816233
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.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now