无法使asp:PopupControlExtender正常工作. [英] Can't get the asp:PopupControlExtender to work.

查看:67
本文介绍了无法使asp:PopupControlExtender正常工作.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使弹出控制器正常工作.有什么建议吗?

我确实在主体区域中添加了一个脚本管理器.

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" />


推荐答案

您在更新面板之外使用popcontrol扩展程序,为什么它不起作用,请在更新面板中写它...
就像您编写压光机控件一样.


还有一件事

您没有使用脚本管理器..

在访问任何ajax控件之前,我们必须使用脚本管理器..like

<脚本管理器>
</脚本管理器>

< updatePanel>
< contenttemplate>

//这里您可以使用其他工具包...//popupextender,raing,textbox等.

</contenttemplate>
</updatepanel>


因此,请在更新面板之前的页面上添加脚本管理器.



如果您得到答案,请给我评分

谢谢
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


问题是我安装了Ajax库而不是"AJAX控制工具包"
The problem was that I installed the Ajax Library instead of the "AJAX Control Toolkit"


这篇关于无法使asp:PopupControlExtender正常工作.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆