阿贾克斯日历扩展结束日期 [英] Ajax Calendar Extender End Date

查看:101
本文介绍了阿贾克斯日历扩展结束日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用ajax日历扩展为从日期和到目前为止文本框中,我必须禁用迄今为止previous日期或日期比选择了从日期较小。我可以看到很多的帖子使用范围验证。如何禁用日期没有任何消息给用户?

I am using ajax calendar extender for 'From date' and 'To date' text box, I have to disable To date previous date or dates lesser than selected 'From date'. I can see many posts using range validation. How I can disable the dates without any message to user?

推荐答案

首先增加.DLL - RJS.Web.WebControl.PopCalendar.Net.2008.dll

First add .dll - RJS.Web.WebControl.PopCalendar.Net.2008.dll

然后添加源$ C ​​$ C:

Then add source code:

<asp:TextBox ID="DepartureDate" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;
      <rjs:PopCalendar ID="PopCalendar1" runat="server" Control="DepartureDate" 
            Format="mm dd yyyy" 
            InvalidDateMessage="The date value entered is invalid." RequiredDate="True" 
            RequiredDateMessage="You must enter a date value." From-Date="" SelectWeekend="True" 

            />
    <br />
    <br />
    <br />
    <asp:TextBox ID="ReturnDate" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;
     <rjs:PopCalendar ID="myReturnCal" runat="server" Control="ReturnDate" 
            Format="mm dd yyyy" 
            InvalidDateMessage="The date value entered is invalid." RequiredDate="True" 
            RequiredDateMessage="You must enter a date value." 
            From-Control="DepartureDate" From-Date="" From-Increment="1" 
            />
    <br />
      <asp:Label ID="Results" runat="server"></asp:Label>
        <rjs:PopCalendarMessageContainer ID="PopCalMessagesForDeparture" runat="server" 
            Calendar="myDepartureCal" />
        <rjs:PopCalendarMessageContainer ID="PopCalMessagesForReturn" runat="server" 
            Calendar="myReturnCal" />

这篇关于阿贾克斯日历扩展结束日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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