AJAX :: Disable Only Past 7 (N) Days In CalendarExtender Control
Jul 30, 2013Found this very useful [URL] .....
How do we allow only past 7 days for selection along with disabled future date.
Found this very useful [URL] .....
How do we allow only past 7 days for selection along with disabled future date.
i want to know how to disable past dates in ajax calendar extender so user can not select past dates.
View 1 RepliesI would like to know if it is possible to highlight some days in the calendar extender, for example the weekends, the holidays.. Or if I should use the calendar of asp.
View 3 RepliesI am using Ajax calendar control and image button as popup control I want to disable Previous.. Actual I used
Calendar Extendar.StartDate= DateTime.
Now in load event but it is throwing error...
I am using ajax calendar extender to select the dates.I want to disable all the dates less than today. Means the user can't select those previous days ie the dates should be shown in grey color and users can't select it.
View 6 RepliesHow to disable the dates on the Calendarextender control ie: and only highlight the specific dates ( the date is coming from DB dynamically )
so if i have the dates like 5 , 8 , 24 , 28 Jan 2011 - i have to highlight these dates with background somecolor and change some text color, and disable other dates.
Is it possible to do this using CalendarExtender control I google but i didnt get any way of doing the above task, If not so which calendar control wil fulfil my requirement. and also i have to show the calendar similar to the calendarextender.
This question is regarding one of your article on disabling future dates in [URL] ....
Your code in the above link disables(prevents for selection) dates for selection greater than today.
But I want to prevent users from selecting dates after a particular date say for example-after 13th October 2013, all the dates should be disabled.
I replaced this line
var c = (new Date).setHours(0, 0, 0, 0);
with
var c = (new Date("October 13, 2013 11:00:00")).setHours(0,0,0,0);
in the javascript file(Extension.min.js).
But still it was disabling dates other than today.
How to disable the calenderextender if the textbox is disabled.suppose if consider the following code,
<asp:TextBox ID="txtstartdate" runat="server"></asp:TextBox>
<asp:CalendarExtender ID="txtstartdate_CalendarExtender" runat="server" Enabled="True"
TargetControlID="txtstartdate" Format="dd/MM/yyyy" DefaultView="Years" BehaviorID="StartDate">
if the textbox is enable user can pick the date..if it is disable then user should not be allowed to pick the date...
I have two text boxes (from date and to date). Based on your demo i have disabled the future date but my requirement is
1). First i have select the from date. eg: 21-02-2013
2). Now i am selecting TO DATE. eg:21-01-2013
Now my requirement is i need to disable dates until 21-02-2013 to current date. Then user not able to select ToDate as 21-01-2013 i need to provide only option to select from 22-02-2013 to current date.
<asp:Label ID="lbl_sel_date" runat="server" Text="Select Date: "></asp:Label>
<asp:TextBox ID="txtDate_from" runat="server" CssClass="disable_future_dates"></asp:TextBox>
<asp:ImageButton runat="server" ID="imgPopup" ImageUrl="~/Calendar.png" />
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate_from"
PopupButtonID="imgPopup" />
[code]...
if looked but couldend find what i was looking for So my Q is:How disable Past dates on Calendar to make it unclickable?
View 2 RepliesThere is a calendar control in asp.net
For selection mode, there is day, dayweek and dayweekmonth.
But I wanna select randomly like every monday for the selected month.. something like that.
For that, I need to do the custom method.
I am facing a different problem in using Ajax Calendar..
i.e., I am using ajax calendar properly
but whenever i am click calender image it displays ajax calender only 5 days instead of 7 days...
The preview of calendar is shown below
[URL=http://www.lazypic.com/view.php?filename=56ScreenShot.jpg][img]http://www.lazypic.com/images/56ScreenShot.jpg[/img][/URL]
I've written a custom date control that inherits the TextBox control, but has it's own three textboxes for capturing month,day, and year separately. I wanted to use the CalendarExtender with it so people could plug in the date that way as well, but I cannot "trigger" the CalendarExtender to show with my custom control.
View 6 RepliesI have used ajax CalendarExtender in my web site but after uploading it does how show the calander control. I have registered the control on the page itself. The page postback when i click the image on which i applied the control.
View 2 RepliesI want to change the formate of ajaxcalender extender like 23-Apr-2013 how it possible.
I want this because i have some rocrds in table where date is stored in formate of 23-Apr-13 and when i wnat to search it on basis of date i am unable to find it because may calender formate is 23-04-13. if their is no way to cahge the formate calaender extender so i convert 23-04-13 values to 23-Apr-13 using code ?
How can i get both date and time using Ajax calendar extender in ASP.Net,C#.
View 1 RepliesI have used a Ajax calendar with Image control in my application But the problem is when I am leaving the image control It's not Escape If i press Escape button also It's not Escape, any tag for calendar Escape..
View 1 RepliesI am working on a project where i am required to selected a date(Hijri) using calendar control in to textbox ....
View 1 Repliesi have a textbox for date of birth with calender as an extender i want when the user click the date it should only accept the date when the age between 15 to 40
View 1 RepliesIn my website their is a textbox for adding birth date...
I am using the ajax calendar for selecting date...
I want that the user who enters the date shld be above 16yrs old...
Means i want that the date should be minus from the current date and should be calculated as 16yrs or above it...
For example:- user 'A' selects a date 5th may 2005 and the current date is 28th march 2013 (which means that the age is 8 yrs)... than it should show an error that "your age should be above 16 yrs"...
Front-end:- Asp.net C#
Back-end:- sql server 2005
Note:- I am using Ajax Calendar....
How can i check that a perticular date selected from calendar control is already past....
suppose i select 2/2/2010 then a message will be shown that oops! date u selected, already past.....
How to calculate no of days, month and working days
from date
Date1 is Enrolled date
Date 2 is todays date
So I want to calculate no of days and month and working days excluding saturday and sunday
Date1 = 10/01/2012
date = 12/05/2012
I want ans as : total days : 65 days
Month : 2 month 5 days
working days : 48 working days
I would like to get number of Year, Month and Days by Given days.
Eg:- My input is 400 out put like as 1 year 1 Month and 4 Days.
How to do it?
How to disable tab or visibility control if some condition is not satisfy.
I want it that control in .asmx page, because I have some Cascaded combo under two tab.
If the first combo is not populate in any of tab then that tab will not visible or disable to user.
As I am populating the cascaded combo box using web methods so it is easy for me to declare that fuction there.
How can I disable particular <menu item> tag in asp.net menu control, through code at runtime, according to session value??
View 1 Replies