Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PopupControlExtender
Message
De
14/10/2008 11:02:09
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
AJAX
Titre:
PopupControlExtender
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01354831
Message ID:
01354831
Vues:
81
Hi all,

I am trying to create a DatePicker using the PopupControlExtender and have found lots of examples. I did this successfully just like the code below without the tables and without this page being inside an ASPContentHolder (Master Page). This code is exactly alike except for the master page, and tables. It works in the sample I did but not in my app with this code. When I navigate to the page, I get the calendar showing when it shouldn't be until clicking in one of the textboxes and the textboxes are not linked to it. Anyone got any ideas why it wouldn't work in this situation?
Thanks
Tim
<table cellpadding="5" style="width: 100%">
    <tr>
        <td>
            <mm:mmLabel ID="lblTruckSelect" runat="server" AccessLevel="Full" 
                BindingProperty="Text" BindingSource="" BindingSourceMember="" 
                ControlID="00000000-0000-0000-0000-000000000000" DisplayFormat="" 
                IsPostBack="False" SecuritySetup="True" Text="Truck Code:" UserFieldName="" />
        </td>
        <td style="text-align: left">
            <mm:mmDropDownList ID="cboTruckSelect" runat="server" Width="150px" />
        </td>
        <td>
            <mm:mmLabel ID="lblGroupSelect" runat="server" AccessLevel="Full" 
            BindingProperty="Text" BindingSource="" BindingSourceMember="" 
            ControlID="00000000-0000-0000-0000-000000000000" DisplayFormat="" 
            IsPostBack="False" SecuritySetup="True" Text="Group Code:" UserFieldName="" />
        </td>
        <td style="text-align: left">
            <mm:mmDropDownList ID="cboGroupSelect" runat="server" Width="150px" />
        </td>
    </tr>
    <tr>
        <td>
            <mm:mmLabel ID="lblDateSelect" runat="server" AccessLevel="Full" 
                BindingProperty="Text" 
                ControlID="00000000-0000-0000-0000-000000000000" 
                IsPostBack="False" SecuritySetup="True" Text="Beginning Date:" />
        </td>
        <td style="text-align: left">
            <mm:mmTextBox ID="txtBeginDate" runat="server" Width="150px" />
            <cc1:PopupControlExtender ID="txtBeginDate_PopupControlExtender" runat="server" 
                DynamicServicePath="" Enabled="True" ExtenderControlID="" 
                TargetControlID="txtBeginDate" PopupControlID="pnlCalendar" Position="Bottom" />
        </td>
        <td>
            <mm:mmLabel ID="mmLabel1" runat="server" AccessLevel="Full" 
                BindingProperty="Text" BindingSource="" BindingSourceMember="" 
                ControlID="00000000-0000-0000-0000-000000000000" DisplayFormat="" 
                IsPostBack="False" SecuritySetup="True" Text="Ending Date:" UserFieldName="" />
        </td>
        <td style="text-align: left">
            <mm:mmTextBox ID="txtEndDate" runat="server" Width="150px" />
            <cc1:PopupControlExtender ID="txtEndDate_PopupControlExtender" runat="server" 
                DynamicServicePath="" Enabled="True" ExtenderControlID="" 
                TargetControlID="txtEndDate" PopupControlID="pnlCalendar" Position="Bottom" />
        </td>
    </tr>
    <tr>
        <td>
            <mm:mmLabel ID="lblTimeRange" runat="server" AccessLevel="Full" 
                BindingProperty="Text" BindingSource="" BindingSourceMember="" 
                ControlID="00000000-0000-0000-0000-000000000000" DisplayFormat="" 
                IsPostBack="False" SecuritySetup="True" Text="Time Range" UserFieldName="" />
        </td>
        <td style="text-align: left" colspan="2">
            <mm:mmDropDownList ID="cboTimeRange" runat="server" Width="350px" />
        </td>
        <td>
            <mm:mmButton ID="btnRetrieve" runat="server" Text="Retrieve" Width="111px" 
                onclick="btnRetrieve_Click" />
        </td>
    </tr>
</table>
</center>
</div>
	
<asp:Panel ID="pnlCalendar" runat="server">
    <asp:UpdatePanel ID="upCal" runat="server">
        <ContentTemplate>
            <asp:Calendar ID="calSelectDate" runat="server" 
                OnSelectionChanged="calSelectDate_SelectionChanged" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Panel>
Timothy Bryan
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform