Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calender contorl master page

Status
Not open for further replies.

aajaydee

Technical User
Oct 16, 2005
39
US
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>

<asp:panel 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"/>&nbsp;<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"/>&nbsp;<img style="cursor: hand" onclick='sctCalendar("form1.txtToDate1")' src="images/calendar.gif" border="0">
-->
&nbsp;<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
 
wht do u mean by not working? the page itself does not show up??? are the master and child page in the same folder???

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top