Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I can't get the pop controller to work. Any Suggestions to why?

I do have a scriptmanager added in the body area.

<<pre lang="xml">div class="style1">
    Begin Date:
    <asp:TextBox ID="txtBegin" runat="server">
    </asp:TextBox>
    End Date:
    <asp:TextBox ID="txtEnd" runat="server">
    </asp:TextBox>
  </div>
  <asp:UpdatePanel ID="UpdatePanel" runat="server">
    <ContentTemplate>
      <asp:Panel ID="pCal" runat="server">
        <asp:Calendar ID="cal" runat="server" Style="text-align: center"> </asp:Calendar>
      </asp:Panel>
    </ContentTemplate>
  </asp:UpdatePanel>
  <asp:PopupControlExtender ID="PopupCntrlEx1" TargetControlID="txtBegin" PopupControlID="pCal" Position="Bottom" runat="server" />
  <asp:PopupControlExtender ID="PopupCntrlEx2" TargetControlID="txtEnd" PopupControlID="pCal" Position="Bottom" runat="server" />

Posted

you are using popcontrol extender outside of update panel that why its not working so please write it in the update panel...
like you writes calender control..


and one more thing

you are not using script manager ..

before accessing any ajax control we have to use script manager..like

<script manager>
</script manager>

<updatePanel>
<contenttemplate>

//here you can use your other tool kits... like //popupextender,raing,textbox etc..

</contenttemplate>
</updatepanel>


so add script manager on your page before update panel.



if you get your answer then please rating me

thanks
 
Share this answer
 
v2
The problem was that I installed the Ajax Library instead of the "AJAX Control Toolkit"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900