I have a master page name master page
which has
td style="vertical-align: top; height: 388px;">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</td>
I made other page(default) as child by adding
page directive
<%@ Page Language="c#" Inherits="CALAdmin.default.aspx" CodeFile="default.aspx.cs" %>which has popup calender control
this default page has a popup calender which was working fine but it is not working with master page
has code page source
<asp:Content ID="ContAdmin" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script>
function calendarPicker(strField)
{
window.open('DatePicker.aspx?field=' + strField,'calendarPopup','width=250,height=190,resizable=yes');
}
</script>
<aspanel ID="pnlAdmin" runat="server" Height="30px" Style="z-index: 100; left: 240px;
position: absolute; top: 147px" Width="567px">
<!--
<asp:textbox id="txtFromDate1" CssClass="ListText" ReadOnly="True" Runat="server" Width="90"/> <img style="cursor: hand" onclick='sctCalendar("form1.txtFromDate1")' src="images/calendar.gif" border="0" id="IMG1">
<asp:TextBox id="txtToDate1" CssClass="ListText" ReadOnly="True" Runat="server" Width="90"/> <img style="cursor: hand" onclick='sctCalendar("form1.txtToDate1")' src="images/calendar.gif" border="0">
-->
<a href="javascript:;" onclick="calendarPicker('$txtFromtDate');" title="Pick Date from Calendar">
Select
</a>
<asp:TextBox ID="txtFromtDate" runat="server" Style="z-index: 100; left: 80px; position: absolute;
top: 1px" Width="117px" OnTextChanged="txtFromtDate_TextChanged"></asp:TextBox>
<a href="javascript:;" onclick="calendarPicker('txtToDate');" title="Pick Date from Calendar">
Select To</a>
<asp:TextBox ID="txtToDate" runat="server" Style="z-index: 101; left: 358px; position: absolute;
top: 1px" Width="114px"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Style="z-index: 103; left: 492px; position: absolute;
top: 0px" Text="Button" OnClick="Button1_Click1" /> .......
...... rest of code ...
will any one tell me what I'm doing wrong
thanks
which has
td style="vertical-align: top; height: 388px;">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</td>
I made other page(default) as child by adding
page directive
<%@ Page Language="c#" Inherits="CALAdmin.default.aspx" CodeFile="default.aspx.cs" %>which has popup calender control
this default page has a popup calender which was working fine but it is not working with master page
has code page source
<asp:Content ID="ContAdmin" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script>
function calendarPicker(strField)
{
window.open('DatePicker.aspx?field=' + strField,'calendarPopup','width=250,height=190,resizable=yes');
}
</script>
<aspanel ID="pnlAdmin" runat="server" Height="30px" Style="z-index: 100; left: 240px;
position: absolute; top: 147px" Width="567px">
<!--
<asp:textbox id="txtFromDate1" CssClass="ListText" ReadOnly="True" Runat="server" Width="90"/> <img style="cursor: hand" onclick='sctCalendar("form1.txtFromDate1")' src="images/calendar.gif" border="0" id="IMG1">
<asp:TextBox id="txtToDate1" CssClass="ListText" ReadOnly="True" Runat="server" Width="90"/> <img style="cursor: hand" onclick='sctCalendar("form1.txtToDate1")' src="images/calendar.gif" border="0">
-->
<a href="javascript:;" onclick="calendarPicker('$txtFromtDate');" title="Pick Date from Calendar">
Select
</a>
<asp:TextBox ID="txtFromtDate" runat="server" Style="z-index: 100; left: 80px; position: absolute;
top: 1px" Width="117px" OnTextChanged="txtFromtDate_TextChanged"></asp:TextBox>
<a href="javascript:;" onclick="calendarPicker('txtToDate');" title="Pick Date from Calendar">
Select To</a>
<asp:TextBox ID="txtToDate" runat="server" Style="z-index: 101; left: 358px; position: absolute;
top: 1px" Width="114px"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Style="z-index: 103; left: 492px; position: absolute;
top: 0px" Text="Button" OnClick="Button1_Click1" /> .......
...... rest of code ...
will any one tell me what I'm doing wrong
thanks