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:dashs@ccmi.us"
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,
>
[quoted text clipped - 82 lines]
> >> > ************************************************************
> >> > ************************************************************
OZI - 13 Sep 2007 22:49 GMT
Walid,
This is the markup with JavaScript,
do you have any code behind?
after your login where are you redirected to what page.
in that page place a break point and trace.
OZI.
> Ozi,
> Here is the code:
[quoted text clipped - 301 lines]
>> >> > ************************************************************
>> >> > ************************************************************
Walid - 14 Sep 2007 14:48 GMT
This is the page that I get the error. When I login, I get to this page and
the error comes up. On a working server, the same page comes up after I
login.
Thanks for you help!
> Walid,
>
[quoted text clipped - 279 lines]
> >> >> > about
> >> >> > the error and where it originated in the code.
OZI - 14 Sep 2007 19:23 GMT
Where is the code behind on this page? Do you have any?
are you accessing a DATABASE?
OZI
> This is the page that I get the error. When I login, I get to this page
> and
[quoted text clipped - 296 lines]
>> >> >> > about
>> >> >> > the error and where it originated in the code.
Walid - 14 Sep 2007 20:06 GMT
Ozi,
Yes, the application is accessing a SQL database which I believe is defined
within the code (I believe it is defiend in the web config file). I don't
know what you mean the code behind this page. I thought what I sent you is
the code. How can I find where the code behind this page is?
Thanks for your patience!
> Where is the code behind on this page? Do you have any?
> are you accessing a DATABASE?
[quoted text clipped - 274 lines]
> >> >> >> >
> >> >> >> > I have migrated a site from IIS5 to IIS6. The site is configured
Walid - 14 Sep 2007 20:08 GMT
This is working on the production box which is running IIS5 on Windows 2000
server. We are migrating the site to Windows 2003 Server IIS6. So, after I
migrate the site through the IIS migration tool, compared all IIS settings,
the site does not work on the new IIS6 server.
> Where is the code behind on this page? Do you have any?
> are you accessing a DATABASE?
[quoted text clipped - 274 lines]
> >> >> >> >
> >> >> >> > I have migrated a site from IIS5 to IIS6. The site is configured
OZI - 14 Sep 2007 23:25 GMT
You might have some security or connectivity issue form IIS6 server Server
to the Database then.
Can you ping or run some Console application or something from the Server
where IIS resides to test if you can actually talk to the Database at all
OZI
> This is working on the production box which is running IIS5 on Windows
> 2000
[quoted text clipped - 302 lines]
>> >> >> >> > I have migrated a site from IIS5 to IIS6. The site is
>> >> >> >> > configured