Ozi,
Here is the code:
<%@ Register TagPrefix="uc1" TagName="T5DBHeader" Src="T5DBHeader.ascx"
%>
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="StartPage.aspx.vb" Inherits="T5DB.StartPage"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>StartPage</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="
http://schemas.microsoft.com/intellisense/ie5">
<script language="JavaScript">
<!--
/***********************************************
* Auto Maximize Window Script- © Dynamic Drive (
www.dynamicdrive.com)
* This notice must stay intact for use
* Visit
http://www.dynamicdrive.com/ for this script and 100's more.
***********************************************/
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight < screen.availHeight||top.window.outerWidth
<
screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//This code maximizes window-->
</script>
<script language="JavaScript">
<!--Hide
function CountryNotInit(form)
{
form.AppendixDownList.options[0].selected = true;
form.QueryDownList1.options[0].selected = true;
}
function AppendixNotInit(form)
{
form.CountryDropDownList1.options[0].selected = true;
form.QueryDownList1.options[0].selected = true;
}
function QueryNotInit(form)
{
form.CountryDropDownList1.options[0].selected = true;
form.AppendixDownList.options[0].selected = true;
//ShowQueryControls(form);
}
//function ShowQueryControls(form)
//{
// document.Form1.ddlTest.style.visibility="hidden";
// form.ddlTest.style.visibility="hidden";
//}
function RedirectToNewWindow()
{
var setSize='height=' + screen.height + ',' + 'width=' + screen.width +
',top=0,left=0,<BR>scrollbars=yes,resizable=yes,toolbar=yes,status=yes,menubar=yes';
if (document.Form1.CountryDropDownList1.options[0].selected == false)
{
window.open("NewWindowRedirector.aspx?CID=" +
document.Form1.CountryDropDownList1.options[document.Form1.CountryDropDownList1.selectedIndex].value,"_blank",setSize);
return;
}
if (document.Form1.AppendixDownList.options[0].selected == false)
{
window.open("NewWindowRedirector.aspx?AID=" +
document.Form1.AppendixDownList.options[document.Form1.AppendixDownList.selectedIndex].value,"_blank",setSize);
return;
}
if (document.Form1.QueryDownList1.options[0].selected == false)
{
window.open("NewWindowRedirector.aspx?QID=" +
document.Form1.QueryDownList1.options[document.Form1.QueryDownList1.selectedIndex].value,"_blank",setSize);
return;
}
}
// End Hide --->
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<uc1:T5DBHeader id="T5DBHeader1" runat="server"></uc1:T5DBHeader>
<TABLE id="Table2" style="Z-INDEX: 102; LEFT: 8px; POSITION: absolute;
TOP: 248px; HEIGHT: 208px"
width="100%" border="0">
<TR>
<TD style="HEIGHT: 42px" tabIndex="3" vAlign="middle" align="center">
<DIV style="WIDTH: 786px; POSITION: relative; HEIGHT: 56px"
ms_positioning="GridLayout">
<asp:dropdownlist id="AppendixDownList" style="Z-INDEX: 102; LEFT:
56px; POSITION: absolute; TOP: 32px"
tabIndex="6" runat="server"
OnSelectedIndexChanged="ChangeAppendixItem"
onChange="AppendixNotInit(this.form);"
AutoPostBack="false" Width="536px" BackColor="White" Height="14px"
Font-Size="XX-Small">
<asp:ListItem Value="0">SELECT AN APPENDIX</asp:ListItem>
<asp:ListItem Value="2">Appendix 2 (Gateway International Service
Center/Exchange Office Country Distribution Listing)</asp:ListItem>
<asp:ListItem Value="3">Appendix 3 (International Service
Centers/Exchange Offices)</asp:ListItem>
<asp:ListItem Value="5">Appendix 5 (International Air Mail Carrier
Code List)</asp:ListItem>
<asp:ListItem Value="6">Appendix 6 (IATA Airport Codes)</asp:ListItem>
</asp:dropdownlist>
<asp:dropdownlist id="QueryDownList1" style="Z-INDEX: 103; LEFT:
336px; POSITION: absolute; TOP: 8px"
tabIndex="7" runat="server" OnSelectedIndexChanged="ChangeQueryItem"
onChange="QueryNotInit(this.form);"
AutoPostBack="false" Width="304px" BackColor="White" Height="24px"
Font-Size="XX-Small">
<asp:ListItem Value="0">SELECT A QUERY</asp:ListItem>
<asp:ListItem Value="1">Routing Restrictions</asp:ListItem>
<asp:ListItem Value="2">Variation in Routing
Restrictions</asp:ListItem>
<asp:ListItem Value="3">Countries Not Honoring a Specific Mail
Type</asp:ListItem>
<asp:ListItem Value="4">Services Available for a
Country</asp:ListItem>
</asp:dropdownlist>
<asp:button id="btnSubmit" style="Z-INDEX: 104; LEFT: 664px;
POSITION: absolute; TOP: 32px"
onclick="btnSubmit_Click" tabIndex="8" runat="server" Width="57px"
BackColor="White" Height="21px"
Font-Size="XX-Small" Font-Bold="True" Text="Submit"
ForeColor="OrangeRed" Font-Names="Arial"
Visible="False"></asp:button><a href="#"
onclick="javascript:RedirectToNewWindow();"><INPUT style="Z-INDEX: 106;
LEFT:
664px; WIDTH: 88px; POSITION: absolute; TOP: 8px; HEIGHT: 24px"
type="button" value="Submit"></a>
<asp:dropdownlist id="CountryDropDownList1" style="Z-INDEX: 107;
LEFT: 16px; POSITION: absolute; TOP: 8px"
tabIndex="5" runat="server"
OnSelectedIndexChanged="ChangeCountryItem"
onChange="CountryNotInit(this.form);"
Width="312px" DataValueField="ctry_id" DataTextField="ctry_name"
BackColor="White" Height="32px"
Font-Size="XX-Small">
<asp:ListItem Value="0" Selected="True">SELECT A
COUNTRY</asp:ListItem>
</asp:dropdownlist></DIV>
<DIV style="WIDTH: 393px; POSITION: relative; HEIGHT: 48px"
ms_positioning="GridLayout">
<asp:HyperLink id="hlSubscribe" style="Z-INDEX: 100; LEFT: 40px;
POSITION: absolute; TOP: 8px"
runat="server" Font-Size="X-Small" Font-Names="Arial"
Font-Bold="True" Target="_blank"
NavigateUrl="Subscribe.aspx">Subscribe</asp:HyperLink>
<asp:HyperLink id="hlPrinting" style="Z-INDEX: 101; LEFT: 176px;
POSITION: absolute; TOP: 8px"
runat="server" Font-Size="X-Small" Font-Names="Arial"
Font-Bold="True" Target="_blank"
NavigateUrl="PrintPageCountrySelection.aspx">Printing</asp:HyperLink>
<asp:HyperLink id="hlFeedbackEmail" style="Z-INDEX: 102; LEFT: 288px;
POSITION: absolute; TOP: 8px"
runat="server" Font-Size="X-Small" Font-Names="Arial"
Font-Bold="True" NavigateUrl="mailto:
[email protected]"
Target="_blank">Feedback</asp:HyperLink></DIV>
<DIV style="DISPLAY: inline; WIDTH: 416px; HEIGHT: 17px"
ms_positioning="FlowLayout"><FONT face="Arial" size="1">
Click Subscribe to notification for receiving a daily/weekly/monthly
summary of
changes to the country pages and appendices.</FONT></DIV>
<br>
<DIV style="DISPLAY: inline; WIDTH: 232px; HEIGHT: 17px"
ms_positioning="FlowLayout"><FONT face="Arial" size="1">Click
Print to print a selection of country pages.</FONT></DIV>
</TD>
</TR>
</TABLE>
<asp:button id="butTrace" style="Z-INDEX: 101; LEFT: 600px; POSITION:
absolute; TOP: 16px" onclick="butTrace_click"
runat="server" Font-Size="XX-Small" Height="18px"
BackColor="MidnightBlue" Visible="False"
ForeColor="Red" Text="Trace is Off" Font-Bold="True" ToolTip="Click to
turn trace on or off"
BorderColor="White"></asp:button>
<TABLE id="Table1" style="Z-INDEX: 103; LEFT: 8px; POSITION: absolute;
TOP: 120px; HEIGHT: 88px; TEXT-ALIGN: center"
cellSpacing="1" cellPadding="1" width="100%" border="0">
<TR>
<TD style="HEIGHT: 22px" vAlign="middle" align="center">
<asp:Label id="lblHeading" runat="server" Font-Size="Large"
ForeColor="Blue" Font-Bold="True"></asp:Label></TD>
</TR>
<TR>
<TD vAlign="middle" align="center">
<asp:Label id="lblSubHeading" runat="server" Font-Size="Medium"
Font-Bold="True" Height="16px"
Width="100%"></asp:Label></TD>
</TR>
<TR>
</TR>
</TABLE>
</form>
<!--Removed from QueryDropDownList -->
<!-- <asp:ListItem Value="5">Service and Mail Type</asp:ListItem>-->
<!-- <asp:ListItem Value="6">Country to Gateway</asp:ListItem>-->
</body>
</HTML>
:
Simply put,
set a BreakPoint ( need be in Debugging mode and not in Release Mode)
in
your Page_Load event handler. Read about debugging and how to set a
breakpoint if you don't know how.
use F11 to step through the code line by line, to narrow down where
the
error is occurring.
use F10 to step over etc...
I am assuming you are getting some data from a database to
authenticate
the
user etc..
check if you are getting any data back if you expecting data back.
You said that things break after you try to login, are you being
authenticated?
Without seeing any code it is very difficult to help you out.
OZI
Thank-you for replying!
I am very new to .NET and programming, very new
How can I trace
my
code? What more information can I provide to get some more help?
Your
assistance is much appreciated.
Walid
:
Did you trace your code and see where it is failing
somehow your data binding is failing, you are not getting data or
something.
Limited info given.
OZI
Hello:
I have migrated a site from IIS5 to IIS6. The site is configured
and
the
we
app is installed on the new IIS site. I can get to the web page
but
when
I
try to login, this is what I get the following error below. I
would
appreciate any insight, direction or help regarding this.
Thank-you!!
Walid
************************************************************************************************************************
Server Error in '/' Application.
--------------------------------------------------------------------------------
The IListSource does not contain any data sources.
Description: An unhandled exception occurred during the execution
of
the
current web request. Please review the stack trace for more
information
about
the error and where it originated in the code.