通过按钮和texbox弹出ajax日历 [英] popup ajax calender by button and texbox both

查看:72
本文介绍了通过按钮和texbox弹出ajax日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用此代码在我的asp.net页面中弹出日历.


< asp:TextBox ID = "  runat = "  > 
             < asp:图片ID = "  runat =  "  ImageAlign = " 
            ImageUrl = " />
            < asp:CalendarExtender ID = "  runat =  " 
             TargetControlID = "  Format = "  dd/MM/yyyy"
        PopupButtonID = "  Animated = "  true" 带有关联按钮的日历 


Hi i am using this code to popup calender in my asp.net page


<asp:TextBox ID="Txt_Date_Curent" runat="server" >
             <asp:Image ID="popimg" runat="server" ImageAlign="AbsMiddle" 
            ImageUrl="~/Images/cal.png" />
            <asp:CalendarExtender ID="CalendarExtender1" runat="server"  
             TargetControlID="Txt_Date_Curent" Format="dd/MM/yyyy" 
        PopupButtonID="popimg" Animated="true" >





using this code when i am clicking on image button calender is populating...

But i want when my cursor go to text box.. .then also calender should populate....
please Help..

解决方案

Add another calander extender and set PopupButtonID="Txt_Date_Curent" TargetControlID="Txt_Date_Curent"


it will helps
Calendar with an associated button


这篇关于通过按钮和texbox弹出ajax日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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