点击targetcontrolid时,Ajax日历扩展程序弹出日历不显示 [英] Ajax calendar extender pop up calendar not displaying on click of targetcontrolid

查看:94
本文介绍了点击targetcontrolid时,Ajax日历扩展程序弹出日历不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ajax日历扩展程序。我旁边有一个文本框和日历图像。当用户点击图像按钮时,日历将弹出,并且在选择日期时,日期将显示在文本框上。客户端代码是



< asp:ScriptManager ID =smrunat =server>



I am using ajax calendar extender. I have a textbox and calendar image next to it. When user clicks on image button, the calendar is to popout and on selection of date, the date is to be displayed on textbox. The client side code is

<asp:ScriptManager ID="sm" runat="server">

<label id="lbldate" runat="server" class="editor-label">Date </label>
       <asp:TextBox ID="txtStartDate" runat="server" Width="155px" style="background-color:whitesmoke;" AutoCompleteType="None" ></asp:TextBox>
        <asp:Image ID="imgCalendarStartDate" runat="server" ImageUrl="~/Styles/Images/Calander.png" Height="16px" Width="16px" />
       <ajax:CalendarExtender ID="ajaxCalendarExtender" runat="server" BehaviorID="ajaxCalendarExtender" TargetControlID="txtStartDate" PopupButtonID="imgCalendarStartDate"></ajax:CalendarExtender>





在这里,当我点击日历图像按钮时,日历不会弹出..有什么我错过了。

谢谢提前...



Here, as i click the calendar image button, the calendar does not pop up.. is there anything i have missed.
Thanks in advance...

推荐答案

我替换了< ajax:toolkitscript xmlns:ajax =#unknown>管理员inplace of< asp:scriptmanager xmlns:asp =#unknown>它工作..
I replaced <ajax:toolkitscript xmlns:ajax="#unknown"> manager inplace of <asp:scriptmanager xmlns:asp="#unknown"> and it worked..


这篇关于点击targetcontrolid时,Ajax日历扩展程序弹出日历不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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