When deployed, asp.net page will not run onload or postback event functions from server side - asp.net

in my asp.net application (VB is server side background) - I have a page that will not run onload or postback server side events. In the local development build, it runs correctly but when published on an amazon EC2 instance the onload doesn't seem to execute, and even though the post back is happening (tested with onload javascript alerts to make sure the post back was happening) - when the dropdown named drpdn_status is changed, the server side function to handle this does not seem to be executing. Can anyone see why this would be happening? Listed below is the page code, followed by the server side on load and the selectedIndexChanged function to handle the change of the dropdown
Page Code
<%# Page Language="vb" AutoEventWireup="false" Codebehind="toDoListModifyEntity_PT.aspx.vb" inherits="iPlan.toDoListModifyEntity_PT" %>
<%# Register TagPrefix="Component" Namespace="components" Assembly="components" %>
<%# Register TagPrefix="UserControl" TagName="ConditionalDetails" Src="../include/ConditionalDetailsPanel.ascx" %>
<%# Register TagPrefix="UserControl" TagName="Deliverable" Src="../include/AttachmentToEntity.ascx" %>
<%# Register TagPrefix="UserControl" TagName="EntityPredecessorsTable" Src="../include/EntityPredListPanel.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<HEAD>
<title><%=Application("BrowserTitle")%></title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="../solutions/DetailScreenTest.css" type="text/css" rel="stylesheet">
<LINK href="../StyleSheet.css" type="text/css" rel="stylesheet">
<!-- includes for: calendar popUp -->
<script language="JavaScript" src="../include/calendar.vRef.NET.js"></script>
<script language="JavaScript" src="../include/ShowHelp.js"></script>
<LINK href="../include/calendar.blueIce.css" type="text/css" rel="stylesheet">
<LINK rel="stylesheet" type="text/css" href="../Styles.css">
</HEAD>
<body>
<form id="Form2" method="post" runat="server">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td class="pageHeader">Update this Task</td>
</tr>
</table>
<div class="hideforprint" style="HEIGHT: 30px">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td></td>
<td align="right"><IMG style="CURSOR: hand" onclick="showHelp('../', 'pendingtasks.htm')" alt="Help on Detail Screen"
src="../images/helpdashboard.gif"></td>
<!--
<td align="right" width="1%"><img onclick="window.parent.execScript('ToggleDetailDivSize()'); if (this.action == 'max') {this.action='restore'; this.src = '../images/bigRestore.gif'; this.alt='Restore Detail Screen';} else {this.action='max'; this.src = '../images/bigMax.gif'; this.alt='Maximize Detail Screen';}"
action="max"
alt="Maximize Detail Screen"
src="../images/bigMax.gif"
style="cursor: hand" ></td>
-->
<td align="right" width="1%"><IMG style="CURSOR: hand" onclick="window.parent.execScript('ToggleDetailDiv()')" alt="Close Detail Screen"
src="../images/BigX.gif"></td>
</tr>
</table>
</div>
<!-- START nav buttons-->
<div class="hideforprint">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td class="pageHeader">
<table id="navControl_tlbNav" border="0">
<tr>
<!--
<td class="infotext2" valign="Top" style="width:50px;"><img onmouseover="imgOv(this, '../images/task.gif')" onmouseout="imgOu(this, '../images/task_over.gif')" onclick="imgclick('../tasks/modifytask.aspx', '&mode=create', 13)" src="../images/task_over.gif" border="0" style="cursor:hand;" /><br> Create Task</td>
<td class="infotext2" valign="Top" style="width:50px;"><img onmouseover="imgOv(this, '../images/Milestone.gif')" onmouseout="imgOu(this, '../images/Milestone.gif')" onclick="imgclick('../tasks/MilestoneLinking.aspx', '&mode=create&milestone=true', 13)" src="../images/Milestone.gif" border="0" style="cursor:hand;" /><br>Create Milestone</td>
<td class="infotext2" valign="Top" style="width:50px;"><img onmouseover="imgOv(this, '../images/modify.gif')" onmouseout="imgOu(this, '../images/modify_over.gif')" onclick="imgclick('../tasks/modifytask.aspx', '&mode=edit', 13)" src="../images/modify_over.gif" border="0" style="cursor:hand;" /><br>Modify Task</td>
<td class="infotext2" valign="Top" style="width:50px;"><img onmouseover="imgOv(this, '../images/delete.gif')" onmouseout="imgOu(this, '../images/delete_over.gif')" onclick="imgclick('../tasks/deletetask.aspx', '', 13)" src="../images/delete_over.gif" border="0" style="cursor:hand;" /><br>Delete Task</td>
-->
<td class="infotext2" style="WIDTH: 50px" vAlign="top"><IMG onmouseover="imgOv(this, '../images/attachfile.gif')" style="CURSOR: hand" onclick="imgclick('../listing/attachments.aspx', '', 13)"
onmouseout="imgOu(this, '../images/attachfile_over.gif')" src="../images/attachfile_over.gif" border="0"><br>
Attach Files</td>
<td class="infotext2" style="WIDTH: 50px" vAlign="top"><IMG onmouseover="imgOv(this, '../images/DetailsScreenNotes_over.gif')" style="CURSOR: hand"
onclick="imgclick('../notesforum/EntityNotes.aspx', '', 13)" onmouseout="imgOu(this, '../images/DetailsScreenNotes.gif')" src="../images/DetailsScreenNotes.gif"
border="0"><br>
Notes</td>
<td class="infotext2" style="WIDTH: 50px" vAlign="top"><IMG onmouseover="imgOv(this, '../images/PrintDetailsPage_over.gif')" style="CURSOR: hand"
onclick="imgclick('print', '', 13)" onmouseout="imgOu(this, '../images/PrintDetailsPage.gif')" src="../images/PrintDetailsPage.gif"
border="0"><br>
Print Details</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!-- END nav buttons-->
<!-- START NOTICES task predecessor list -->
<asp:Panel ID="pnl_msg_predecessorsInSameAction" Runat="server" Visible="False">
<TABLE border="0" cellSpacing="0" cellPadding="0" height="1">
<TR class="detailHeader" height="1">
<TD height="1" width="10"> </TD>
<TD height="1" width="200">Notice</TD>
<TD height="1"><IMG src="../images/whiteslant.gif" height="15"></TD>
</TR>
</TABLE>
<TABLE class="detailTable" cellSpacing="0" cellPadding="4" width="100%">
<TR class="detailRow">
<TD class="detailLabel"><IMG src="../images/yellow-exclamation-sign.gif"></TD>
<TD class="detailLabel">This task is <SPAN class="DetailsOtherGreyed">grayed-out</SPAN>
pending the completion of the following predecessor Tasks. If this Task is
updated, future status updates will be restricted until the Project Manager
takes action.</TD>
</TR>
</TABLE>
</asp:Panel>
<asp:Panel ID="pnl_msg_predecessorsActionLinked" Runat="server" Visible="False">
<TABLE border="0" cellSpacing="0" cellPadding="0" height="1">
<TR class="detailHeader" height="1">
<TD height="1" width="10"> </TD>
<TD height="1" width="200">Notice</TD>
<TD height="1"><IMG src="../images/whiteslant.gif" height="15"></TD>
</TR>
</TABLE>
<TABLE class="detailTable" cellSpacing="0" cellPadding="4" width="100%">
<TR class="detailRow">
<TD class="detailLabel"><IMG src="../images/yellow-exclamation-sign.gif"></TD>
<TD class="detailLabel">This task is <SPAN class="DetailsOtherGreyed">grayed-out</SPAN>
pending the completion of the following predecessor Actions. If this Task is
updated, future status updates will be restricted until the Administrator takes
action.</TD>
</TR>
</TABLE>
</asp:Panel>
<!-- END NOTICES task predecessor list -->
<!-- START NOTICES Status Marked Early -->
<asp:Panel ID="pnl_msg_earlyProgressAlreadyMarked_notifiedPM" Runat="server" Visible="False">
<TABLE border="0" cellSpacing="0" cellPadding="0" height="1">
<TR class="detailHeader" height="1">
<TD height="1" width="10"> </TD>
<TD height="1" width="200">Notice</TD>
<TD height="1"><IMG src="../images/whiteslant.gif" height="15"></TD>
</TR>
</TABLE>
<TABLE class="detailTable" cellSpacing="0" cellPadding="4" width="100%">
<TR class="detailRow">
<TD class="detailLabel"><IMG src="../images/yellow-exclamation-sign.gif"></TD>
<TD class="detailLabel">Status for this Task has been marked and the Project
Manager notified. Future status updates await Project Manager action. Please
contact the PM for further information.</TD>
</TR>
</TABLE>
</asp:Panel>
<asp:Panel ID="pnl_msg_earlyProgressAlreadyMarked_notifiedAdmin" Runat="server" Visible="False">
<TABLE border="0" cellSpacing="0" cellPadding="0" height="1">
<TR class="detailHeader" height="1">
<TD height="1" width="10"> </TD>
<TD height="1" width="200">Notice</TD>
<TD height="1"><IMG src="../images/whiteslant.gif" height="15"></TD>
</TR>
</TABLE>
<TABLE class="detailTable" cellSpacing="0" cellPadding="4" width="100%">
<TR class="detailRow">
<TD class="detailLabel"><IMG src="../images/yellow-exclamation-sign.gif"></TD>
<TD class="detailLabel">Status for this Task has been marked and an Administrator
notified. Future status updates await Administrator action. Please contact the
Administrator for further information.</TD>
</TR>
</TABLE>
</asp:Panel>
<!-- END NOTICES Status Marked Early -->
<!-- START task predecessor list -->
<asp:panel id="pnl_predecessorList" Runat="server" visible="false">
<TABLE border="0" cellSpacing="0" cellPadding="0" height="1">
<TR class="detailHeader" height="1">
<TD height="1" width="10"> </TD>
<TD height="1" width="200">Predecessors</TD>
<TD height="1"><IMG src="../images/whiteslant.gif" height="15"></TD>
</TR>
</TABLE> <!-- <TABLE class="detailTable" id="Table3" cellSpacing="0" cellPadding="4" width="100%"> -->
<UserControl:EntityPredecessorsTable style="BORDER-BOTTOM: red thin solid; BORDER-LEFT: red thin solid; BACKGROUND-COLOR: red; BORDER-TOP: red thin solid; BORDER-RIGHT: red thin solid; cGKattrib: hello chris"
id="usrCntrl_EntityPredecessor" class="detailTable" runat="server" relativePathToImages="../images/" relativePathToRoot="../"
width="100%" displayMode="PredecessorMode"></UserControl:EntityPredecessorsTable>
</asp:panel>
<asp:Label ID="lbl_cGKDebug" Runat="server" Visible="False" />
<script language="VB" runat="server">
Private Sub usrCntrl_EntityPredecessor_EntityHasActionLink() Handles usrCntrl_EntityPredecessor.EntityHasPredecessorsActionLinked
'"../ViewTask.aspx" & Request.QueryString.ToString
lbl_cGKDebug.text += "TESTING JIZZ: ../tasks/ViewTask.aspx?" & Request.QueryString.ToString &" <br />"
'Response.redirect("../tasks/ViewTask.aspx?" & Request.QueryString.ToString )
pnl_predecessorList.Visible = True
'Show user messages (only if global flags for both other early-status-marked notices are not on):
if gbl_bool_earlyStatusAlreadyMarked_notifyAdmin = false and gbl_bool_earlyStatusAlreadyMarked_notifyPM = false then
pnl_msg_predecessorsInSameAction.Visible = False
pnl_msg_predecessorsActionLinked.Visible = True
end if
'Hide Modify Panel, Addt'nl Details
pnl_dynDetails.visible = false
pnl_modifyElements.visible = false
btn_save.Text = "Inform Administrator"
btn_save.visible = false
lbl_btn_save_message.visible = true
lbl_btn_save_message.Text = "You may not save status on this task."
'Change the way the save function behaves:
gbl_bool_predecessorsInOtherActionExist_notifyAdmin = True
End Sub
Private Sub usrCntrl_EntityPredecessor_EntityHasPredecessorsInSameAction() Handles usrCntrl_EntityPredecessor.EntityHasPredecessorsInSameAction
lbl_debugInfo.Text += "<br />usrCntrl_EntityPredecessor_EntityHasNoPredecessors Sub: there's been an EVENT THIS IS GREAT<br />"
pnl_predecessorList.Visible = True 'False
'Show user messages (only if global flags for both other early-status-marked notices are not on):
if gbl_bool_earlyStatusAlreadyMarked_notifyAdmin = false and gbl_bool_earlyStatusAlreadyMarked_notifyPM = false then
pnl_msg_predecessorsInSameAction.Visible = True
pnl_msg_predecessorsActionLinked.Visible = False
end if
btn_save.Text = "Inform PM" '"Save"
'Change the way the save function behaves:
gbl_bool_predecessorsInSameActionExist_notifyPM = True 'False
End Sub
</script>
<!-- END task predecessor list -->
<table height="1" cellSpacing="0" cellPadding="0" border="0">
<tr class="detailHeader" height="1">
<td width="10" height="1"> </td>
<td width="200" height="1">Dates</td>
<td height="1"><IMG height="15" src="../images/whiteslant.gif"></td>
</tr>
</table>
<TABLE class="detailTable" id="Table3" cellSpacing="0" cellPadding="4" width="100%">
<TR class="detailRow">
<TD class="detailLabel" vAlign="top">Color</TD>
<TD vAlign="top">:</TD>
<TD vAlign="top" colSpan="4"><asp:label id="lblColor" Runat="server"></asp:label></TD>
</TR>
<TR class="detailRowalt">
<TD class="detailLabel">Work [Hours(s)]</TD>
<TD>:</TD>
<TD><asp:label id="lblHours" Runat="server"></asp:label></TD>
<TD class="detailLabel">Duration [Day(s)]</TD>
<TD>:</TD>
<TD><asp:label id="lblDays" Runat="server"></asp:label></TD>
</TR>
<TR class="detailRow">
<TD class="detailLabel" width="20%">Sched Start</TD>
<TD width="1%">:</TD>
<TD width="29%"><asp:label id="lblSchedStart" Runat="server"></asp:label></TD>
<TD class="detailLabel" width="20%">Sched End</TD>
<TD width="1%">:</TD>
<TD width="29%"><asp:label id="lblSchedEnd" Runat="server"></asp:label></TD>
</TR>
<TR class="detailRowalt">
<TD class="detailLabel">Actual Start</TD>
<TD>:</TD>
<TD><asp:label id="lblActualStart" Runat="server"></asp:label></TD>
<TD class="detailLabel">Actual End</TD>
<TD>:</TD>
<TD><asp:label id="lblActualEnd" Runat="server"></asp:label></TD>
</TR>
<TR class="detailRow">
<TD class="detailLabel">Projected Start</TD>
<TD>:</TD>
<TD><asp:label id="lblProjectedStart" Runat="server"></asp:label></TD>
<TD class="detailLabel">Projected End</TD>
<TD>:</TD>
<TD><asp:label id="lblProjectedEnd" Runat="server"></asp:label></TD>
</TR>
</TABLE>
<!-- == -->
<asp:panel id="pnl_dynDetails" Runat="server" Visible="False">
<TABLE border="0" cellSpacing="0" cellPadding="0" height="1">
<TR class="detailHeader" height="1">
<TD height="1" width="10"> </TD>
<TD height="1" width="200">* Additional Details</TD>
<TD height="1"><IMG src="../images/whiteslant.gif" height="15"></TD>
</TR>
</TABLE>
<asp:Table id="tbl_dynDetails" Runat="server" Width="100%" CellSpacing="0" CellPadding="4"
CssClass="detailTable"></asp:Table>
</asp:panel>
<!-- START PANEL pnl_modifyElements -->
<asp:panel id="pnl_modifyElements" Runat="server">
<asp:label id="lbl_debugInfo" Runat="server" visible="false"></asp:label>
<TABLE border="0" cellSpacing="0" cellPadding="0" height="1">
<TR class="detailHeader" height="1">
<TD height="1" width="10"> </TD>
<TD height="1" width="200">* Please fill in all the fields</TD>
<TD height="1"><IMG src="../images/whiteslant.gif" height="15"></TD>
</TR>
</TABLE>
<TABLE id="Table5" class="detailTable" cellSpacing="0" cellPadding="4" width="100%">
<TR class="detailRow">
<TD style="HEIGHT: 24px" class="detailLabel" width="20%">Status</TD>
<TD style="HEIGHT: 24px" width="1%">:</TD>
<TD width="1%">
<DIV style="DISPLAY: none" id="divdrpdn_status"><FONT color="red">*</FONT></DIV>
</TD>
<TD style="HEIGHT: 24px" width="29%" colSpan="4">
<asp:dropdownlist id="drpdn_status" Runat="server" AutoPostBack="True"></asp:dropdownlist></TD>
</TR>
<TR id="tblRow_actualStartDate" class="detailRowalt" runat="server">
<TD class="detailLabel">Actual Start Date</TD>
<TD>:</TD>
<TD>
<DIV style="DISPLAY: none" id="divdatfld_actualStartDate"><FONT color="red">*</FONT></DIV>
</TD>
<TD>
<Component:DateField id="datfld_actualStartDate" Runat="server" DisallowFutureDates="true" Enabled="true"
size="10"></Component:DateField></TD>
</TR>
<TR id="tblRow_actualEndDate" class="detailRow" runat="server">
<TD class="detailLabel">Actual End Date</TD>
<TD>:</TD>
<TD>
<DIV style="DISPLAY: none" id="divdatfld_actualEndDate"><FONT color="red">*</FONT></DIV>
</TD>
<TD>
<Component:DateField id="datfld_actualEndDate" Runat="server" DisallowFutureDates="true" Enabled="true"
size="10"></Component:DateField></TD>
</TR>
<TR id="tblRow_estimatedEndDate" class="detailRowalt" runat="server">
<TD class="detailLabel">Estimated End</TD>
<TD>:</TD>
<TD>
<DIV style="DISPLAY: none" id="divdatfld_estimatedEndDate"><FONT color="red">*</FONT></DIV>
</TD>
<TD colSpan="4">
<Component:DateField id="datfld_estimatedEndDate" Runat="server" DisallowFutureDates="false" Enabled="true"
size="10"></Component:DateField></TD>
</TR>
<TR id="tblRow_remarks" class="detailRow" runat="server">
<TD style="HEIGHT: 24px" class="detailLabel" width="20%">
<asp:Label id="lbl_remarks" Runat="server"></asp:Label></TD>
<TD style="HEIGHT: 24px" width="1%">:</TD>
<TD width="1%">
<DIV style="DISPLAY: none" id="divtxtbx_remarks"><FONT color="red">*</FONT></DIV>
</TD>
<TD style="HEIGHT: 24px" width="29%" colSpan="4">
<asp:textbox id="txtbx_remarks" Runat="server" Rows="3" TextMode="MultiLine"></asp:textbox></TD>
</TR> <!--
<tr class="detailRow">
<td class="detailLabel" style="CURSOR: hand; COLOR: green; TEXT-DECORATION: underline"
onclick="callZoom(33,<%=session("user_id")%>, '<%=session("user_name")%>');" colSpan="6">Analyze your progress</td>
</tr>
--></TABLE> <!-- START Deliverable User control -->
<asp:panel id="pnl_deliverable" Runat="server" visible="true">
<TABLE border="0" cellSpacing="0" cellPadding="0" width="98%" align="center">
<TR>
<TD>
<TABLE cellSpacing="0" cellPadding="2" width="100%">
<TR>
<TD><FONT style="FONT-FAMILY: Tahoma, Verdana; COLOR: darkblue; FONT-SIZE: 12pt; FONT-WEIGHT: bold">A
Deliverable is Required </FONT>
</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD style="BORDER-BOTTOM: darkgray 1px solid; BORDER-LEFT: darkgray 1px solid; WIDTH: 100%; BORDER-TOP: darkgray 1px solid; BORDER-RIGHT: darkgray 1px solid"
bgColor="aliceblue"></TD>
</TR>
</TABLE>
<UserControl:Deliverable id="usrCntrl_AttachDeliverable" runat="server"></UserControl:Deliverable>
</asp:panel>
<asp:panel id="pnl_condDetailsEdit" Visible="true" Runat="server">
<TABLE cellSpacing="0" cellPadding="0" height="1">
<TR class="detailHeader" height="1">
<TD height="1" width="10"> </TD>
<TD height="1" width="200"><SPAN>*</SPAN> Conditional Details</TD>
<TD height="1"><IMG src="../images/whiteslant.gif" height="15"></TD>
</TR>
</TABLE>
<UserControl:ConditionalDetails id="usrCntrl_ConditionalDetailsPanel" runat="server"></UserControl:ConditionalDetails>
</asp:panel> <!-- END Conditional Details User control -->
<asp:button id="btn_save" Runat="server" Text="Save"></asp:button>
<asp:label id="lbl_btn_save_message" Runat="server" visible="False"></asp:label>
</asp:panel>
<asp:panel id="pnl_modifyPerformedMessage" Runat="server">
<asp:Label id="lbl_modifyPerformedMessage" Runat="server"></asp:Label>
</asp:panel>
<input id="hdn_resourceId" type="hidden" name="hdn_resourceId"> <input id="hdnexplode" type="hidden" name="hdnexplode">
<input type="hidden" id="RefreshParent" name="RefreshParent"> <input type="hidden" id="hdnSessionTimeout" name="hdnSessionTimeout" runat="server">
</form>
</body>
</html>
On load and rest of server side:
Imports System.Data.SqlClient
Imports components
Partial Class toDoListModifyEntity_PT
Inherits BasePage
#Region " Web Form Designer Generated Code "
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Protected WithEvents NavSpot As System.Web.UI.WebControls.PlaceHolder
Dim arlist_dynCompnts As ArrayList
Dim gbl_task_Type As Integer = -1
Dim gbl_str_deliverableStatus As String
Public gbl_bool_predecessorsInSameActionExist_notifyPM As Boolean = False
Public gbl_bool_predecessorsInOtherActionExist_notifyAdmin As Boolean = False
Public gbl_bool_earlyStatusAlreadyMarked_notifyPM As Boolean
Public gbl_bool_earlyStatusAlreadyMarked_notifyAdmin As Boolean
Protected WithEvents usrCntrl_EntityPredecessor As EntityPredListPanel
Protected WithEvents usrCntrl_ConditionalDetailsPanel As ConditionalDetailsPanel
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim DS As SqlDataReader = getEntityDetails(CType(Page.Request.QueryString("taskgrpid"), Integer), CType(Page.Request.QueryString("taskgrpcategory"), Integer))
DS.Read()
If Not IsDBNull(DS.Item("Type")) Then gbl_task_Type = CType(DS.Item("Type"), Integer)
If Not Page.IsPostBack Then
fillStatuDropDown(CType(Page.Request.QueryString("taskgrpid"), Integer), 13, CType(Session.Item("user_id"), Integer))
drpdn_status_SelectedIndexChanged(New Object, New System.EventArgs)
If Page.Request.QueryString("taskgrpcategory") = "13" Then
datfld_actualStartDate.Text = DS.Item("Actual Start").ToString()
datfld_actualEndDate.Text = DS.Item("Actual End").ToString()
datfld_estimatedEndDate.Text = DS.Item("ProjEnd").ToString()
txtbx_remarks.Text = DS.Item("remark").ToString()
lblSchedStart.Text = DS.Item("Scheduled Start").ToString()
lblSchedEnd.Text = DS.Item("Scheduled End").ToString()
lblActualStart.Text = DS.Item("Actual Start").ToString()
lblActualEnd.Text = DS.Item("Actual End").ToString()
lblProjectedStart.Text = DS.Item("ProjStart").ToString()
lblProjectedEnd.Text = DS.Item("ProjEnd").ToString()
lblHours.Text = DS.Item("Hours").ToString()
lblDays.Text = DS.Item("Duration").ToString()
If IsDBNull(DS.Item("color")) = False Then
If DS.Item("color") = "G" Then
lblColor.Text = "<img src=""../images/G.gif""> Green"
ElseIf DS.Item("color") = "Y" Then
lblColor.Text = "<img src=""../images/Y.gif""> Yellow"
ElseIf DS.Item("color") = "O" Then
lblColor.Text = "<img src=""../images/O.gif""> Orange"
ElseIf DS.Item("color") = "R" Then
lblColor.Text = "<img src=""../images/R.gif""> Red"
Else
lblColor.Text = "None"
End If
Else
lblColor.Text = "None"
End If
If lblActualStart.Text <> "" Then
lblProjectedStart.Visible = False
Else
lblProjectedStart.Visible = True
End If
End If
End If
DS.Close()
If Page.Request.QueryString("taskgrpcategory") = "13" Then
pnl_dynDetails.Visible = False
If gbl_task_Type <> -1 Then
pnl_dynDetails.Visible = True
arlist_dynCompnts = New ArrayList
CustomFieldsLibrary.editDynamicFields(tbl_dynDetails, CType(Page.Request.QueryString("taskgrpid"), Integer), 13, gbl_task_Type, arlist_dynCompnts, (New SqlConnection((New ConnInfo).GetConnString)), True)
'CustomControls.CustomFieldsLibrary.showDynamicDetails(tbl_dynDetails, CType(Page.Request.QueryString("taskgrpid"), Integer), 13, task_Type, Nothing, (New SqlConnection((New ConnInfo).GetConnString)), True)
End If
End If
gbl_str_deliverableStatus = ExecutionFunctions.checkEntityDeliverableStatus(CType(Page.Request.QueryString("taskgrpid"), String))
lbl_debugInfo.Text += System.DateTime.Now.ToLongTimeString() + " gbl_str_deliverableStatus: '" + gbl_str_deliverableStatus + "'<br />"
gbl_bool_earlyStatusAlreadyMarked_notifyPM = ExecutionFunctions.checkEarlyProgressAlreadyMarked_PM(CType(Page.Request.QueryString("taskgrpid"), String))
gbl_bool_earlyStatusAlreadyMarked_notifyAdmin = False
If gbl_bool_earlyStatusAlreadyMarked_notifyPM Then
pnl_msg_predecessorsInSameAction.Visible = False
pnl_msg_predecessorsActionLinked.Visible = False
pnl_msg_earlyProgressAlreadyMarked_notifiedPM.Visible = True
Else
pnl_msg_earlyProgressAlreadyMarked_notifiedPM.Visible = False
End If
If gbl_bool_earlyStatusAlreadyMarked_notifyAdmin Then
pnl_msg_predecessorsInSameAction.Visible = False
pnl_msg_predecessorsActionLinked.Visible = False
pnl_msg_earlyProgressAlreadyMarked_notifiedPM.Visible = False
pnl_msg_earlyProgressAlreadyMarked_notifiedAdmin.Visible = True
Else
pnl_msg_earlyProgressAlreadyMarked_notifiedAdmin.Visible = False
End If
If gbl_bool_earlyStatusAlreadyMarked_notifyAdmin Or gbl_bool_earlyStatusAlreadyMarked_notifyPM Then
pnl_modifyElements.Visible = False
Else
pnl_modifyElements.Visible = True
End If
btn_save.Attributes("onClick") = "return validate(this.form);"
lbl_debugInfo.Text += "Page_Load END<br />"
End Sub
drpdn_status_SelectedIndexChanged:
Private Sub drpdn_status_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles drpdn_status.SelectedIndexChanged
lbl_remarks.Text = drpdn_status.SelectedItem.Text + " Remarks"
Select Case drpdn_status.SelectedValue
Case 7
tblRow_actualStartDate.Visible = True
tblRow_actualEndDate.Visible = False
tblRow_estimatedEndDate.Visible = False
tblRow_remarks.Visible = False
pnl_deliverable.Visible = False
Case 8
tblRow_actualStartDate.Visible = True
tblRow_actualEndDate.Visible = False
tblRow_estimatedEndDate.Visible = True
tblRow_remarks.Visible = True
pnl_deliverable.Visible = False
Case 15
tblRow_actualStartDate.Visible = True
tblRow_actualEndDate.Visible = False
tblRow_estimatedEndDate.Visible = True
tblRow_remarks.Visible = False
pnl_deliverable.Visible = False
Case 9
tblRow_actualStartDate.Visible = True
tblRow_actualEndDate.Visible = True
tblRow_estimatedEndDate.Visible = False
tblRow_remarks.Visible = True
Dim str_deliverableStatus As String = ExecutionFunctions.checkEntityDeliverableStatus(CType(Page.Request.QueryString("taskgrpid"), String))
If str_deliverableStatus = "1" Then pnl_deliverable.Visible = True
lbl_debugInfo.Text += "Local str_deliverableStatus: '" + str_deliverableStatus + "'<br />"
Case Else
Throw New Exception("ERROR: unrecognized status *Value* (" + drpdn_status.SelectedItem.Value.ToString + ")")
End Select
End Sub
Thanks for your help.
update: if I replace the onload with only a clientscript to just pop up an alert to let us know the page load is being ran, it works on the development side but still nothing happens on the server side. Even though we call a function (fillStatuDropDown) to fill the dropdown on load - the dropdown on the deployment side is loaded with two values even though we have removed all calls to the function that fills the dropdown, on the development side it doesn't fill any values into the dropdown

Your page AutoEventWireup is at false, where is the event attached?
Also, there's some kind of logic issue in your Page_Load.
If Not Page.IsPostBack Then
fillStatuDropDown(CType(Page.Request.QueryString("taskgrpid"), Integer), 13, CType(Session.Item("user_id"), Integer))
drpdn_status_SelectedIndexChanged(New Object, New System.EventArgs)
Let's take the case where you load the page the first time, the SelectedIndexChanged event is then attached correctly but if you change the index, another postback occurs the selectedIndexChanged event will not be attached causing the event not to be fired.

Issue was due to corruption from FTP deployment. Was able to reupload the whole application and everything then worked as intended.

Related

Subgurim GDirection not displaying on web page

I am using subgurim on my webpage and I am trying to get the directions to populate. I have the markers properly being displayed. I am not in the process of adding the directions, but I am not seeing why they are not being displayed.
Below is the web page:
<%# register assembly="GMaps" namespace="Subgurim.Controles" tagprefix="cc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<table align="center" width="80%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top" width="10%">
<asp:Label ID="lblDirectionsFrom" runat="server" CssClass="Label" Text="Drive From:" Visible="False"></asp:Label>
<asp:DropDownList ID="ddlDirectionsFrom" runat="server" CssClass="Textbox" Width="100px" AppendDataBoundItems="True" Visible="false" AutoPostBack="True">
</asp:DropDownList>
</td>
<td align="center" valign="top" width="20%" colspan="3">
<asp:Label ID="lblDirectionsTo" runat="server" CssClass="Label" Text="Drive To:" Visible="False"></asp:Label>
<asp:DropDownList ID="ddlDirectionsTo" runat="server" CssClass="Textbox" Width="100px" AppendDataBoundItems="True" Visible="false" AutoPostBack="True">
</asp:DropDownList>
</td>
<td align="left" valign="top" colspan="4" width="40%">
<input type="button" id="bt_Go" runat="server" value="Get Directions" onserverclick="GetDirections" class="CmdButton" visible="False" />
</td>
</tr>
<tr>
<td align="right" valign="top" width="10%">
</td>
<td align="left" valign="top" width="20%" colspan="3">
</td>
<td align="left" valign="top" colspan="4" width="40%">
<asp:Label ID="txtMapMsg"
runat="server"
Text="txtMapMsg"
CssClass="Msgbox"
Width="80%"
Visible="False"
BackColor="#F7B432"></asp:Label>
</td>
</tr>
<tr>
<td align="center" valign="top" colspan="4" width="60%">
<asp:TextBox ID="tb_fromPoint" runat="server" meta:resourcekey="tb_fromPointResource1"></asp:TextBox>
<asp:TextBox ID="tb_endPoint" runat="server" meta:resourcekey="tb_endPointResource1"></asp:TextBox>
<cc1:GMap ID="GMap1" runat="server" Key="googlemaps.subgurim.net" CommercialKey="googlemaps.subgurim.net_Commercial" enableServerEvents="true" />
<div id="div_directions"></div>
</td>
<td align="center" valign="top" colspan="4" width="40%">
</td>
</tr>
</table>
</asp:Content>
Here is the code for creating the directions
Protected Sub GetDirections()
Dim NavcareDirection As New GDirection()
Dim sItemNbr As String
txtMapMsg.Visible = False
txtMapMsg.Text = ""
If ddlDirectionsFrom.SelectedItem.Value = "0" Then
txtMapMsg.Text = "You must select a From to get directions"
txtMapMsg.Visible = True
txtOtherStart.Focus()
Exit Sub
End If
If ddlDirectionsTo.SelectedItem.Value = "0" Then
txtMapMsg.Text = "You must select a TO to get directions"
txtMapMsg.Visible = True
txtOtherStart.Focus()
Exit Sub
End If
sItemNbr = ddlDirectionsFrom.SelectedItem.Value
tb_fromPoint.Visible = True
tb_endPoint.Visible = True
NavcareDirection = New GDirection()
NavcareDirection.autoGenerate = False
NavcareDirection.buttonElementId = "bt_Go"
NavcareDirection.fromElementId = tb_fromPoint.ClientID
NavcareDirection.toElementId = tb_endPoint.ClientID
NavcareDirection.divElementId = "div_directions"
NavcareDirection.clearMap = True
NavcareDirection.errorMessage = "Directions Error"
GMap1.Add(NavcareDirection)
End Sub
I am not getting any error and no directions. Any help would be greatly appreciated.
After some time, I have come back and found what I was doing wrong.
NavcareDirection = New GDirection()
NavcareDirection.autoGenerate = False
NavcareDirection.buttonElementId = "bt_Go"
NavcareDirection.fromElementId = tb_fromPoint.ClientID
NavcareDirection.toElementId = tb_endPoint.ClientID
NavcareDirection.divElementId = "div_directions"
NavcareDirection.clearMap = True
NavcareDirection.errorMessage = "Directions Error"
GMap1.Add(NavcareDirection)
Once there, I finally received error messages, but I am not sure why I am getting them. I will place that into a new question.

ModalPopup Not Showing in ASP.Net

I've done everything. Deleted the code and dragged new controls from the toolbox, renamed, tried from javascript -- I just can't get this freakin' modalpopupextender to show. Wasted 3 days.
I'm trying to show it via VB code-behind in the on-click even of the login button. Everything else executes in the button's code, just not this line:
Me.ModalPopupExtender2.Show()
But no matter what I try, it likes to stay hidden.
Any ideas would be welcome!!! Thanks,
Jason
PS -- here's the aspx coding
<%# Page Language="vb" AutoEventWireup="false" CodeBehind="Login.aspx.vb" Inherits="LetterWriterASP.Login" %>
<%# Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head id="Head2"><meta http-equiv="Expires" content="-1" /><title>
Anchor General Insurance Agency, Inc.
</title><meta http-equiv="Expires" content="-1" /><link rel="shortcut icon" href="Images/favicon.ico" /><link href="App_Themes/Default/Calendar.css" type="text/css" rel="stylesheet" /><link href="App_Themes/Default/Default.css" type="text/css" rel="stylesheet" />
</head>
<style type="text/css">
.ModalPopupBG
{
background-color: #666699;
filter: alpha(opacity=50);
opacity: 0.7;
}
.HellowWorldPopup
{
min-width:200px;
min-height:100px;
background:white;
border-color:Silver;
border-style:ridge;
border-width:medium;
}
.HeaderStyle
{
color:Black;
background-color:Black;
border-style:solid;
}
.PopupHeader
{
color:Black;
background-color: Black;
}
</style>
<body leftmargin="0" topmargin="0"
background="Images/tile-grey-stripe.jpg">
<form id="Form1" runat="server">
<table width="1000" height="99" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="35" background="../Images/a_ag01.jpg"></td>
<td width="524"><img src="Images/a_ag1.jpg" alt="" width="524" height="99" border="0" align="top" /></td>
<td width="389">
<table border="0" cellspacing="0" cellpadding="0" width="389">
<tr>
<td width="218"><img id="imgHeader" src="Images/text_title_producer1.jpg" style="height:99px;width:218px;border-width:0px;" /></td>
<td width="111"><img id="imgHeadr2" src="Images/text_title-TILE.jpg" style="height:99px;width:171px;border-width:0px;" /></td>
</tr>
</table>
</td>
<td width="19" align="right"><img src="Images/a_ag4_end.jpg" width="19" height="99" alt="" /></td>
<td align="right" width="33" background="Images/a_ag5.jpg"></td>
</tr>
</table>
<!--end of the header table -->
<table height="702" width="1000" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="50" background="Images/b_ag1_lefttile.jpg"> <!-- This is the left wall of the form !-->
</td>
<td width="900" valign="top" bgcolor="#FFFFFF">
<!-- Text, controls, buttons, etc goes below this comment. !-->
<script type="text/javascript">
function InvalidLogin()
{
alert("Invalid user name or password. Please try again.");
window.location = "../Login.aspx";
}
function ShowModal()
{$find('ModalPopupExtender2').show();}
</script>
<br /><br /><br /><br /><br /><br /><br />
<center><table border="2" cellpadding="4" cellspacing="0"
style="border-collapse:collapse;">
<tr>
<td>
<table border="0" cellpadding="0" style="height:172px;width:278px;">
<tr>
<td align="center" colspan="2"
style="color:White;background-color:#5D7B9D;font-size:0.9em;font-weight:bold;">
Log In</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User
Name:</asp:Label>
</td>
<td>
<asp:TextBox ID="UserName" Width="150" name="UserName" runat="server" Font-Size="0.8em"></asp:TextBox>
<asp:RequiredFieldValidator ID="UserNameRequired" runat="server"
ControlToValidate="UserName" ErrorMessage="User Name is required."
ToolTip="User Name is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
</td>
<td>
<asp:TextBox ID="Password" Width="150" runat="server" Font-Size="0.8em" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="PasswordRequired" runat="server"
ControlToValidate="Password" ErrorMessage="Password is required."
ToolTip="Password is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="center" colspan="2" style="color:Red;">
<asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
</td>
</tr>
<tr>
<td align="right" colspan="2">
<asp:Button ID="LoginButton" runat="server" BackColor="#FFFBFF"
BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" CommandName="Login"
Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284775"
onclick="LoginButton_Click1" Text="Log In" ValidationGroup="Login1" />
</td>
</tr>
</table>
</td>
</tr>
</table> </center>
<!-- Text, controls, buttons, etc goes above this comment. !-->
<!--"#E6E2D8" "Black"-->
</td>
<td width="50" background="Images/b_ag1_righttile.jpg"> <!-- This is the right wall !-->
</td>
</tr>
</table>
<!--end of content table -->
<table height="75" width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="80" background="Images/c_ag1_leftcorner.jpg"></td>
<td width="840" align="center" valign="top" background="Images/c_ag1_center-piece.jpg" class="contents">
<span id="lblFooter"><center>Copyright © 2006 Anchor General Insurance Agency, Inc. All rights reserved. <br />For questions, please call: (800) 542-6246</center></span>
</td>
<td width="80" background="Images/c_ag1_rightcorner.jpg"></td>
</tr>
</table>
<!-- Popup Form -->
<asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server" EnablePageMethods="true">
</asp:ToolkitScriptManager>
<asp:button id="Button3" name="Button3" runat="server" text="Button" style="display: none;" />
<asp:ModalPopupExtender ID="ModalPopupExtender2" runat="server"
targetcontrolid="Button3" popupcontrolid="PopupPanel"
popupdraghandlecontrolid="PopupHeader2" drag="true"
backgroundcssclass="ModalPopupBG">
</asp:ModalPopupExtender>
<asp:Panel ID="PopupPanel" style="display: none" runat="server">
<div class="HellowWorldPopup">
<div class="PopupHeader" id="PopupHeader2"> </div>
<div class="Controls">
<center><table border=0 cellpadding=0 cellspacing=0><tr><td><img src="Images/ajax-loader.gif" /></td><td> Please Wait...</td></tr></table></center>
</div>
</div>
</asp:Panel>
</form>
</body>
</html>
Come to find out (after a VERY long process of trial and error), there's a little something everybody should know about.
You cannot copy
<ToolkitScriptManager>
code from one aspx page to another. You MUST drag it from the toolbox onto your page. I guess it does some stuff we don't see or know about. Same probably goes for ModalPopupExtender.
Hope that helps somebody out there!

Value cannot be null. Parameter name: control

<cc1:ConfirmButtonExtender DisplayModalPopupID="ModalPopupExtender4" ID="ConfirmButtonExtender4"
runat="server" TargetControlID="lnkremoveloc" Enabled="False" OnClientCancel="RemoveLocations">
</cc1:ConfirmButtonExtender>
<cc1:ModalPopupExtender ID="ModalPopupExtender4" OkControlID="btnDisable" CancelControlID="btnCancel"
BackgroundCssClass="modalBackground" PopupControlID="pnlRemove" TargetControlID="lnkremoveloc"
runat="server">
</cc1:ModalPopupExtender>
<asp:Panel CssClass="modalPopup" ID="PnlRemove" runat="server">
<!-- Common Popup Control Begin -->
<table class="tblCommonPopup" width="400" cellpadding="0" cellspacing="0">
<tr>
<td class="topLeft">
</td>
<td class="topMiddle">
</td>
<td class= "topRight">
</td>
</tr>
<tr>
<td colspan="5" class="middle" align="center">
<!-- Content Area Begin -->
<table>
<tr>
<td colspan="1" style="padding-top: 10px;" title="Select">
</td>
<td colspan="4" style="padding-top: 10px;" title="Location Name">
</td>
</tr>
<tr>
<td align="center" colspan="5">
<input id="btnDisable" type="button" value="Disable" class="popupButton" />
<input id="Cancel" type="button" value="Cancel" class="popupButton" />
</td>
</tr>
</table>
<!-- Content Area Ends -->
</td>
</tr>
<tr>
<td class="bottomLeft">
</td>
<td class="bottomMiddle">
</td>
<td class="bottomRight">
</td>
</tr>
</table>
<!-- Common Popup Control End -->
</asp:Panel>
That error means that there's a Dependency Property that has a null value where one is not allowed. Unfortunately you only pasted partial code so I can't tell which property it is - please paste the full code of your control.

how to call asp page from html page

I got the problem while uploading the pages of html & asp.
Actually i have one html page name as index.html & other one is asp page name as ContactUsNew.aspx. There is a link in html page for a "contact Us" page. & for this link i use the code.
<td style="height: 42px">
<p class="menu01">CONTACT US</p>
</td>
When I run this application in localhost it run successfully, but when I upload these pages on ftp that time the path specified for contact us link on index.html page not switches to contactusnew.aspx page. there is path error occurred
I created the below page:
<%# Page Language="VB" AutoEventWireup="false" CodeFile="ContactUsNew.aspx.vb" Inherits="clients_excel_ContactUsNew" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Excel Informatics Pvt. Ltd. :: Careers</title>
<link rel="stylesheet" type="text/css" href="images/style.css" />
</head>
<body >
<form id="form1" runat="server">
<table width="759" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="256">
<img src="images/main01.jpg" width="256" height="41"></td>
<td background="images/fon01.gif">
<table width="503" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="270">
<a href="index.html">
<img src="images/but_home.gif" width="74" height="41" border="0"></a><img src="images/separator.gif"
width="2" height="41"><a href="ContactUs.aspx"><img src="images/but_contacts.gif"
width="96" height="41" border="0"></a><img src="images/separator.gif" width="2" height="41"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="157">
<img src="images/main_logo.gif" width="256" height="157"></td>
<td width="503">
<img src="images/main03.gif" width="503" height="157"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="759" align="center" background="images/fon_menu.gif">
<tr>
<td>
<img src="images/menu01.gif" width="3" height="42" alt="" border="0"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<p class="menu01">
HOME</p>
</td>
<td>
<img src="images/e_menu.gif" alt="" width="24" height="42" border="0" /></td>
<td>
<p class="menu01">
COMPANY</p>
</td>
<td>
<img src="images/e_menu.gif" alt="" width="24" height="42" border="0" /></td>
<td>
<p class="menu01">
SERVICES</p>
</td>
<td>
<img src="images/e_menu.gif" alt="" width="24" height="42" border="0" /></td>
<td>
<p class="menu01">
CUSTOMERS</p>
</td>
<td>
<img src="images/e_menu.gif" alt="" width="24" height="42" border="0" /></td>
<td>
<p class="menu01">
CAREERS</p>
</td>
<td>
<img src="images/e_menu.gif" alt="" width="24" height="42" border="0" /></td>
<td>
<p class="menu01">
CONTACT US</p>
</td>
</tr>
</table>
</td>
<td align="right">
<img src="images/menu02.gif" width="3" height="42" alt="" border="0"></td>
</tr>
</table>
<div align="center">
<img src="images/main01.gif" width="759" height="5" alt="" border="0"></div>
<table border="0" cellpadding="0" cellspacing="0" width="759" align="center">
<tr valign="top">
<td background="images/fon_left.gif">
<img src="images/fon_left.gif" width="3" height="13" alt="" border="0"></td>
<td width="753" bgcolor="#FFFFFF">
<p class="px5">
<table border="0" cellpadding="12" cellspacing="0" width="100%">
<tr valign="top">
<td>
<!-- right -->
<table border="0" cellpadding="0" cellspacing="0" style="height: 375px">
<tr>
<td colspan="3" height="25" bgcolor="#777777">
<p class="title">
<img src="images/e01.gif" width="8" height="8" alt="" border="0"> Contact
Us</p>
</td>
</tr>
<tr>
<td colspan="3" bgcolor="#CCCCCC">
<img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
</tr>
<tr>
<td rowspan="3" bgcolor="#CCCCCC">
<img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
<td bgcolor="#EF9400" height="3">
<img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
<td rowspan="3" bgcolor="#CCCCCC">
<img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
</tr>
<tr>
<td width="725">
<table width="100%">
<tr>
<td>
<p>
Let us show you how we can help you with your IT requirements.</p>
<p>
<b>Excel Informatics Pvt. Ltd.</b><br />
C-2, Suryodaya Complex, Bldg. F.,<br />
Survey No. 154/4, Kalbhor Nagar,<br />
Chinchwad, Pune - 411019<br />
Maharashtra, INDIA<br />
Phone: 91+20+27476633, 27454132
</p>
<p>
<b>E-mail:</b> info#eiplonline.com<br />
or <a href="mailto:excelcom#vsnl.com"
style="color: Blue">excelcom#vsnl.com</a></p>
<div style="height: 120px;">
</div>
</td>
<td>
<table class="txt" cellpadding="2" width="350" cellspacing="0">
<% If CType(Context.Items("success"), Boolean) = True Then%>
<tr>
<td height="30" colspan="3">
<b>
<asp:label id="LblSq" runat="server" text="Thank you for taking the time to give us your enquiry."
cssclass="txtgrn" font-size="9pt"></asp:label>
</b>
</td>
</tr>
<tr>
<td height="10" style="width: 348px">
</td>
</tr>
<% Else%>
<tr>
<td colspan="2" class="help">
All fields marked with * are mandatory.</td>
</tr>
<tr>
<td align="center" style="width: 348px">
<table cellpadding="4" cellspacing="0">
<tr>
<td align="left" width="120">
<span class="txterr">*</span> Your Name</td>
<td width="230" align="left">
<asp:textbox id="TxtName" runat="server" cssclass="txtbox" maxlength="100"></asp:textbox>
<asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" controltovalidate="TxtName"
display="Dynamic" errormessage="Name is Required."></asp:requiredfieldvalidator>
</td>
</tr>
<tr>
<td align="left">
Address</td>
<td align="left">
<asp:textbox id="TxtAddress" runat="server" cssclass="txtbox" columns="25" maxlength="150"
rows="3" textmode="MultiLine"></asp:textbox>
</td>
</tr>
<tr>
<td align="left">
City</td>
<td align="left">
<asp:textbox id="TxtCity" runat="server" cssclass="txtbox" maxlength="25"></asp:textbox>
</td>
</tr>
<tr>
<td align="left">
State</td>
<td align="left">
<asp:textbox id="TxtState" runat="server" cssclass="txtbox" maxlength="25"></asp:textbox>
</td>
</tr>
<tr>
<td align="left">
Phone No.</td>
<td align="left">
<asp:textbox id="TxtPhno" runat="server" cssclass="txtbox" maxlength="15"></asp:textbox>
</td>
</tr>
<tr>
<td align="left">
<span class="txterr">*</span> Email ID</td>
<td align="left">
<asp:textbox id="TxtEmail" runat="server" cssclass="txtbox" maxlength="100"></asp:textbox>
<asp:label id="LblEmail" runat="server" cssclass="txterr"></asp:label>
<asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" controltovalidate="TxtEmail"
display="Dynamic" errormessage="Email is Required."></asp:requiredfieldvalidator>
<asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" controltovalidate="TxtEmail"
display="Dynamic" errormessage="Enter valid email address." validationexpression="\w+([-+.']\w+)*#\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:regularexpressionvalidator>
</td>
</tr>
<tr>
<td align="left">
Subject</td>
<td align="left">
<asp:textbox id="TxtSubject" runat="server" cssclass="txtbox" maxlength="100"></asp:textbox>
</td>
</tr>
<tr>
<td align="left">
<span class="txterr">*</span> Your Message</td>
<td align="left">
<asp:textbox id="TxtMsg" runat="server" columns="25" rows="3" textmode="MultiLine"
cssclass="txtbox" maxlength="200"></asp:textbox>
<asp:requiredfieldvalidator id="RequiredFieldValidator3" runat="server" controltovalidate="TxtMsg"
display="Dynamic" errormessage="Message is Required."></asp:requiredfieldvalidator>
</td>
</tr>
<tr>
<td>
</td>
<td align="left">
<asp:button id="BtnSubmit" runat="server" cssclass="txtbox" text="Submit" height="22px"
width="60px" />
<asp:button id="BtnReset" runat="server" cssclass="txtbox" text="Reset" causesvalidation="False"
height="22px" width="60px" />
</td>
</tr>
</table>
</td>
</tr>
<% End If%>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td background="images/t_fon.gif" height="28">
<img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
</tr>
<tr>
<td colspan="3" align="right">
<img src="images/t_bot.gif" width="229" height="9" alt="" border="0"></td>
</tr>
</table>
<!-- /right -->
</td>
</tr>
</table>
<br>
</td>
<td background="images/fon_right.gif">
<img src="images/fon_right.gif" width="3" height="10" alt="" border="0"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="759" align="center">
<tr>
<td colspan="2" background="images/fon_bot.gif" height="42" align="right">
<table border="0" cellpadding="0" cellspacing="0" width="510" background="">
<tr>
<td>
<p class="menu02">
Home</p>
</td>
<td>
<p class="menu02">
Company</p>
</td>
<td>
<p class="menu02">
Services</p>
</td>
<td>
<p class="menu02">
Customers</p>
</td>
<td>
<p class="menu02">
Careers</p>
</td>
<td>
<p class="menu02">
Contact Us</p>
</td>
</tr>
</table>
</td>
</tr>
<tr align="center">
<td width="270" height="65">
<img src="images/logo_bot.gif" alt="" border="0"></td>
<td width="490">
<p align="center" style="color: #FFFFFF;">
Copyright © 2009 Excel Informatics Pvt. Ltd.
Designed & developed by <a style="color: #FFFFFF;" href="http://www.itiersolutions.com"
target="iTier">iTier solutions</a></p>
</td>
</tr>
</table>
</form>
</body>
</html>
Please check if the contactusnew.aspx file is also uploaded and that your webserver supports ASP.NET.
#Amol: this is an answer that perhaps matches with your problem.
This is from http://forums.asp.net/t/1148374.aspx
instructions:
During development on my computer my project worked fine. When I copied it to the web server it failed with and error "Context is not a member of." I could not find the solution to the problem anywhere. By trial and error I found a solution that worked. I did the following for mypage.aspx with code behind mypage.aspx.vb.
◦I backed up the project.
◦The solution explorer contained a file mypage.aspx.designer.vb. I deleted it. Why? I noticed that when I created a new web form on the web server the designer.vb file was not included.
◦I changed the page directive so that it read CodeFile = "~/MyFolder/MyPage.aspx.vb". The full path within the root directory needs to be in the quotes.
◦I made sure the directive Inherits ="MyPage". This should be exactly the same name as the partial class in MyPage.aspx.vb.
◦I built the page.
◦After I corrected a few pages and ensured that they worked I used "Edit - Replace in files" menu command to change my code and I deleted all the .aspx.designer.vb files.

Problem with HTML? Scrollbars Not Appearing via window.open

I have a VB.NET web application where I am opening a window when a user clicks on a link to view some external tabular data. The data I'm displaying definitely requires a vertical scrollbar in order to see everything...For some reason I cannot get a vertical scrollbar to show up when the new window loads.
Here's the JS that opens the window:
function showDataTable(id, type) {
var pageUrl = "queries/ReportData.aspx";
windowHandle = window.open(pageUrl, "FarmQuery", 'resizable=yes,scrollbars=yes');
windowHandle.focus();
}
The corresponding Page_Load method for the window being opened:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim db As New UtilDb
Dim errMsg As String = ""
If (Not Page.IsPostBack) Then
db.OpenGeoDb(MyGlobals.GeodataServiceName, errMsg)
LoadFarmInfo(db, errMsg)
LoadQueryData(db, errMsg)
db.CloseGeoDb()
End If
End Sub
And for what it's worth I added
style="overflow: scroll;"
To the div containing the data table.
It almost seems like the data table is rendering after the rest of the "page" has been contructed. Any suggestions?
EDIT
The problem occurs in Firefox and IE. I modified the window parameters argument in the JS from 'resizable=yes,scrollbars=yes' to 'resizable=yes,scrollbars=yes,toolbar=yes' and did get the toolbar to show up which indicates those options are "working".
Unfortunately I cannot post the HTML.
EDIT
Here's the sample HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>
Farm Query
</title><link href="../Default.css" type="text/css" rel="stylesheet" /><link href="ReportData.css" type="text/css" rel="stylesheet" /></head>
<body>
<form name="form1" method="post" action="ReportData.aspx?wfpId=DES-046&type=1" id="form1">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="#" />
</div>
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
<div>
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWAwKP2r/ZCgLbzub6CgKJ+/qJC4VfHXBxZJkelz+i1sSmIFdWB5tZ" />
</div>
<div style="overflow: auto;">
<table class="dxgvControl" cellspacing="0" cellpadding="0" id="FarmerInfoGridView" border="0" style="width:600px;border-collapse:collapse;border-collapse:separate;">
<tr>
<td><table id="FarmerInfoGridView_DXMainTable" class="dxgvTable" cellspacing="0" cellpadding="0" border="0" style="width:100%;border-collapse:collapse;empty-cells:show;">
<tr id="FarmerInfoGridView_DXDataRow0" class="dxgvDataRow">
<td id="FarmerInfoGridView_tcrow0" colspan="7" style="border-right-width:0px;border-bottom-width:0px;">
<table width="100%" cellpadding="5" cellspacing="5">
<tr>
<td class="keyDescription">WFP ID:</td>
<td>asdf</td>
</tr>
<tr>
<td class="keyDescription">Name:</td>
<td>Name, Name</td>
</tr>
<tr>
<td class="keyDescription">Company Name:</td>
<td>Acme</td>
</tr>
<tr>
<td class="keyDescription">Address:</td>
<td>123 Lotus Lane</td>
</tr>
<tr>
<td class="keyDescription">City/State:</td>
<td>NY, NY</td>
</tr>
<tr>
<td class="keyDescription">Zip:</td>
<td>11111</td>
</tr>
</table>
</td>
</tr>
</table><img id="FarmerInfoGridView_IADD" src="#" alt="|" style="border-width:0px;position:absolute;visibility:hidden;" /><img id="FarmerInfoGridView_IADU" src="/SAM_Project/WebResource.axd" alt="|" style="border-width:0px;position:absolute;visibility:hidden;" /><img id="FarmerInfoGridView_IDHF" src="/SAM_Project/WebResource.axd" alt="Hide" style="border-width:0px;position:absolute;visibility:hidden;" /><div id="FarmerInfoGridView_LP" align="center" style="left:0px;top:0px;z-index:30000;display:none;">
<table class="dxgvLoadingPanel" cellspacing="0" cellpadding="0" border="0" style="border-collapse:collapse;">
<tr>
<td class="dx"><img src="/SAM_Project/WebResource.axd" alt="" align="middle" style="border-width:0px;" /></td><td class="dx" style="padding-left:0px;">Loading…</td>
</tr>
</table>
</div><div id="FarmerInfoGridView_LD" class="dxgvLoadingDiv" style="display:none;z-index:29999;position:absolute;">
</div><input type="hidden" name="FarmerInfoGridView$DXSelInput" id="FarmerInfoGridView_DXSelInput" /><table id="FarmerInfoGridView_DXStyleTable" border="0" style="display:none;">
<tr>
<td></td>
</tr><tr class="dxgvEditingErrorRow">
<td class="dxgv" colspan="7" style="border-right-width:0px;"></td>
</tr><tr class="dxgvSelectedRow">
<td></td>
</tr><tr class="dxgvFocusedRow">
<td></td>
</tr><tr class="dxgvFocusedGroupRow">
<td></td>
</tr><tr class="dxgvDataRow">
<td></td>
</tr>
</table><input type="hidden" name="FarmerInfoGridView$CallbackState" id="FarmerInfoGridView_CallbackState" value="#" /></td>
</tr>
</table><script id="dxss_27477558" type="text/javascript">
<!--
var dxo = new ASPxClientGridView('FarmerInfoGridView');
window['FarmerInfoGridView'] = dxo;
dxo.callBack = function(arg) { WebForm_DoCallback('FarmerInfoGridView',arg,aspxCallback,'FarmerInfoGridView',aspxCallbackError,true); };
dxo.callBacksEnabled=true;
dxo.pageRowCount=1;
dxo.pageRowSize=10;
dxo.selectedWithoutPageRowCount=0;
dxo.visibleStartIndex=0;
dxo.focusedRowIndex=-1;
dxo.allowFocusedRow=false;
dxo.allowMultiSelection=false;
dxo.isColumnsResizable=false;
dxo.isVerticalScrolling=false;
dxo.isHorizontalScrolling=false;
dxo.isMainControlResizable=false;
dxo.callbackOnFocusedRowChanged=false;
dxo.callbackOnSelectionChanged=false;
dxo.autoFilterDelay='1200';
dxo.ClearColumns();
dxo.CreateColumn('',0,'WFP_ID',1);
dxo.CreateColumn('',1,'Last_Name',1);
dxo.CreateColumn('',2,'First_name',1);
dxo.CreateColumn('',3,'Farm_Name',1);
dxo.CreateColumn('',4,'Address',1);
dxo.CreateColumn('',5,'City_State',1);
dxo.CreateColumn('',6,'Zip',1);
dxo.InlineInitialize();
//-->
</script>
<table class="dxgvControl" cellspacing="0" cellpadding="0" id="AnimalGridView" border="0" style="width:600px;border-collapse:collapse;border-collapse:separate;">
<tr>
<td><table id="AnimalGridView_DXMainTable" class="dxgvTable" cellspacing="0" cellpadding="0" border="0" style="width:100%;border-collapse:collapse;empty-cells:show;">
<tr id="AnimalGridView_DXDataRow0" class="dxgvDataRow">
<td id="AnimalGridView_tcrow0" colspan="43" style="border-right-width:0px;border-bottom-width:0px;">
<table cellpadding="5" cellspacing="5" width="100%" id="rounded-corner">
<tr>
<th colspan="8" class="tableHeader">Animal Inventory</th>
</tr>
<tr>
<td colspan="2">Updated:</td>
<td colspan="2">11/14/2007</td>
<td colspan="2">Total AU:</td>
<td colspan="2">0</td>
</tr>
<tr>
<td>Mature Dairy</td>
<td>0</td>
<td>Dairy Heifers</td>
<td>0</td>
<td>Veal</td>
<td>0</td>
<td>Beef</td>
<td>0</td>
</tr>
<tr>
<td>Calves</td>
<td>0</td>
<td>Bulls</td>
<td>0</td>
<td>Ducks</td>
<td>0</td>
<td>Elk</td>
<td>0</td>
</tr>
<tr>
<td>Sheep</td>
<td>0</td>
<td>Lambs</td>
<td>0</td>
<td>Geese</td>
<td>0</td>
<td>Buffalo</td>
<td>0</td>
</tr>
<tr>
<td>Goats</td>
<td>2</td>
<td>Kids</td>
<td>0</td>
<td>Rabbits</td>
<td>0</td>
<td>Bears</td>
<td>0</td>
</tr>
<tr>
<td>Pigs</td>
<td>0</td>
<td>Piglets</td>
<td>0</td>
<td>Emu</td>
<td>0</td>
<td>Mountain Lion</td>
<td>0</td>
</tr>
<tr>
<td>Horses</td>
<td>0</td>
<td>Foals</td>
<td>0</td>
<td>Ostrich</td>
<td>0</td>
<td>Guinea Pigs</td>
<td>0</td>
</tr>
<tr>
<td>Donkeys</td>
<td>0</td>
<td>Oxen</td>
<td>0</td>
<td>Walaroo</td>
<td>0</td>
<td>Greenhouse</td>
<td>0</td>
</tr>
<tr>
<td>Chickens</td>
<td>0</td>
<td>Turkeys</td>
<td>0</td>
<td>Llama</td>
<td>0</td>
<td>Vegetables</td>
<td>0</td>
</tr>
<tr>
<td>Ginny Hens</td>
<td>0</td>
<td>Peacock</td>
<td>0</td>
<td>Alpaca</td>
<td>0</td>
<td>Pheasant</td>
<td>0</td>
</tr>
<tr>
<td>Deer</td>
<td>0</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table><img id="AnimalGridView_IADD" src="/SAM_Project/WebResource.axd" alt="|" style="border-width:0px;position:absolute;visibility:hidden;" /><img id="AnimalGridView_IADU" src="/SAM_Project/WebResource.axd" alt="|" style="border-width:0px;position:absolute;visibility:hidden;" /><img id="AnimalGridView_IDHF" src="/SAM_Project/WebResource.axd" alt="Hide" style="border-width:0px;position:absolute;visibility:hidden;" /><div id="AnimalGridView_LP" align="center" style="left:0px;top:0px;z-index:30000;display:none;">
<table class="dxgvLoadingPanel" cellspacing="0" cellpadding="0" border="0" style="border-collapse:collapse;">
<tr>
<td class="dx"><img src="/SAM_Project/WebResource.axd" alt="" align="middle" style="border-width:0px;" /></td><td class="dx" style="padding-left:0px;">Loading…</td>
</tr>
</table>
</div><div id="AnimalGridView_LD" class="dxgvLoadingDiv" style="display:none;z-index:29999;position:absolute;">
</div><input type="hidden" name="AnimalGridView$DXSelInput" id="AnimalGridView_DXSelInput" /><table id="AnimalGridView_DXStyleTable" border="0" style="display:none;">
<tr>
<td></td>
</tr><tr class="dxgvEditingErrorRow">
<td class="dxgv" colspan="43" style="border-right-width:0px;"></td>
</tr><tr class="dxgvSelectedRow">
<td></td>
</tr><tr class="dxgvFocusedRow">
<td></td>
</tr><tr class="dxgvFocusedGroupRow">
<td></td>
</tr><tr class="dxgvDataRow">
<td></td>
</tr>
</table><input type="hidden" name="AnimalGridView$CallbackState" id="AnimalGridView_CallbackState" value="#" /></td>
</tr>
</table><script id="dxss_1369069069" type="text/javascript">
<!--
var dxo = new ASPxClientGridView('AnimalGridView');
window['AnimalGridView'] = dxo;
dxo.callBack = function(arg) { WebForm_DoCallback('AnimalGridView',arg,aspxCallback,'AnimalGridView',aspxCallbackError,true); };
dxo.callBacksEnabled=true;
dxo.pageRowCount=1;
dxo.pageRowSize=10;
dxo.selectedWithoutPageRowCount=0;
dxo.visibleStartIndex=0;
dxo.focusedRowIndex=-1;
dxo.allowFocusedRow=false;
dxo.allowMultiSelection=false;
dxo.isColumnsResizable=false;
dxo.isVerticalScrolling=false;
dxo.isHorizontalScrolling=false;
dxo.isMainControlResizable=false;
dxo.callbackOnFocusedRowChanged=false;
dxo.callbackOnSelectionChanged=false;
dxo.autoFilterDelay='1200';
dxo.ClearColumns();
//-->
</script>
<div style="margin-left: auto; margin-right: auto; width: 450px;padding: 5px 5px;"><input id="btnClose" type="submit" value="Close Window" onclick="window.close();" /></div>
</div>
<script type="text/javascript">
//<![CDATA[
WebForm_InitCallback();//]]>
</script>
</form>
</body>
</html>
If you want to always force a scroll bar on a page, try adding the following CSS to the page:
html {
overflow-y:scroll;
}
This will cause the page to always have a vertical scrollbar no matter if it is needed or not.
You might also want to change your code to use:
windowHandle = window.open(pageUrl, "FarmQuery", 'resizable=1,scrollbars=1');
as 1=yes/true but yes does not necessarily equal 1/true (funny cross browser logic!).
This definitely sounds like a CSS issue to me.
Try stripping your link to the CSS file out of the popup page and then see if the problem still exists (I bet it won't).
Then, this becomes a new question: What CSS could cause the scrollbars to disappear on a page?
A rule of overflow: hidden; on the body is a very likely culprit.
Have you tried sizing your main browser window to approximately the size of your popup window and directly navigating to the page that you would display in your popup? Do the scrollbars appear when you load the page directly? The popup window is possibly a red herring.
Scrollbars should just appear when you open a new window if the content doesn't fit the client area. Try adding "width=600,height=600" in your options to reduce the window size right down...if no bars are appearing it is more likely a css problem.
Remove your "default.css" line. Do you still get the problem?
When I tried the html you provided, and I resize the window so the content don't fit, I get scrollbars on the div (which appears slightly smaller than the full window). I tried to remove the style="overflow: auto;" on the div tag, and the scrollbar was only applied on the full window. This seems to work, and when you say that the scrollbars dont apply, my first thought is that it is something defined in your CSS files that causes the problem. It might be in either ../Default.css or ReportData.css .
If the style for div is set to overflow:hidden in one of the css files, you can override this to set style="overflow: visible;" in the div tag on your page. This will cause the content of the div not to be clipped, and scrolling is handled by the window instead of the div tag.
If it is not the div tag that is the problem, it might be some other tags. Look for overflow: hidden on any tags in your css files to see if that might be the problem.
There could be a Position:fixed in your css file which is preventing the scrollbars to appear.
window.open('CHFPhoneMonitoringChecklist.html', 'CHFwin', 'resizable=yes,location=1,status=1,scrollbars=1,width=1250,height=1000');

Resources