Hello,
I have popup calendar written in javascript the allows the user to select a date from the calendar and then it populates a textbox. The popup calendar works, but it is not populating the textbox when I include the MasterPage. It does work, when I takeout the Masterpage reference and just make it a normal page.
Doesn't work when I have the following code:
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CompileWith="RentalRequestForm2.aspx.vb" ClassName="RentalAutomation.Web.RentalRequestForm2_aspx" title="Untitled Page" %>
<asp:Content ContentPlaceHolderID=ContentPlaceHolder1 runat=server>
<SCRIPT language="JavaScript" src="Scripts/Common.js"></SCRIPT> <SCRIPT language="JavaScript">
Calendar_CreateCalendarLayer(0,0,"");</SCRIPT>
<TD style="height: 18px">
<DIV id="divLblRequestDate" class="RequiredField" style="VERTICAL-ALIGN: middle" id="divLblRequestDate">
<DIV align="right">*Request Date:</DIV>
</DIV>
</TD>
<td style="width: 264px; height: 18px;">
<asp:textbox id="txtRequestDate"
runat="server" Columns="26"
CssClass="txtBoxClass">
</asp:textbox>
<input onmouseover="this.style.cursor='hand';"
onclick="show_calendar('all.txtRequestDate','','','MM/DD/YYYY','POPUP','AppendOrReplace=Replace;
AppendChar=\';\';CloseOnSelect=Yes;ReturnData=Date;
Title=Calendar;InlineX=0;InlineY=0;CurrentDate=Today;
SelectAfter=Today-10;SelectBefore=Today+10;AllowWeekends=Yes;Resizable=Yes;
CallFunction=\'\';PopupX=300;PopupY=300;Nav=Yes;SmartNav=Yes;Fix=Yes')" type="button" style="border-top:1px" value="..." onchange="OnChange_Value()" />
Works when I take out the Masterpage:
<%@ Page language="vb" Classname="RentalAutomation.Web.RA_RentalRequestForm_aspx" CompileWith="RentalRequestForm.aspx.vb" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<title>RA_RentalRequest Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT language="JavaScript" src="Scripts/Common.js"></SCRIPT>
<script language="javascript">
<SCRIPT language="JavaScript">
Calendar_CreateCalendarLayer(0,0,"");</SCRIPT>
EVERYTHING ELSE IS THE SAME AS ABOVE .......
<TD style="height: 18px">
<DIV id="divLblRequestDate" class="RequiredField" style="VERTICAL-ALIGN: middle" id="divLblRequestDate">
<DIV align="right">*Request Date:</DIV>
</DIV>
</TD>
<td style="width: 264px; height: 18px;">
<asp:textbox id="txtRequestDate"
runat="server" Columns="26"
CssClass="txtBoxClass">
</asp:textbox>
<input onmouseover="this.style.cursor='hand';"
onclick="show_calendar('all.txtRequestDate','','','MM/DD/YYYY','POPUP','AppendOrReplace=Replace;
AppendChar=\';\';CloseOnSelect=Yes;ReturnData=Date;
Title=Calendar;InlineX=0;InlineY=0;CurrentDate=Today;
SelectAfter=Today-10;SelectBefore=Today+10;AllowWeekends=Yes;Resizable=Yes;
CallFunction=\'\';PopupX=300;PopupY=300;Nav=Yes;SmartNav=Yes;Fix=Yes')" type="button" style="border-top:1px" value="..." onchange="OnChange_Value()" />
ANy insight would be greatly appreciated !!!!
Thanks in advanced