Tracking Forums, Newsgroups, Maling Lists
Home Submit Tracker Forums
  Advanced Search


AJAX :: Limit Days On Calendar Extender?

I need to be able to only allow certain days to be selected on a calendar extender. I have an application where I need users to run a report. The report has to be for a certain time length (2 weeks, from a sunday like 11/2/2011 to a saturday like 11/15/2011). Is there a way to accomplish this?

View 6 Replies (Posted: Jan 19, 2011 01:03 PM)

Sponsored Links:

Related Forum Messages For ASP.NET category:
Calendar Extender Limit My Date Range On An Ajax Calendar?
I have found ways to validate selected dates when using the calendar extender, but maybe im not searchingcorrectly.. but here is what i want to do..just wondering if it can be done with the calendar extender control.

i have a field which requires the user to pick a date.. i woudl like to limit the dates that can be selected from.. i mean the whole calendar can display, but if iwant them to pick ONLY dates within the last 7 days and 7 days in the future..

Example:Todays date is 11/06/2009 so when they click in the textbox and the calendar opens, the full calendar is displayed.. but the only availble dates to pick from are 10/30, 10/31, 11/1, 11/2, 11/3, 11/4, 11/5, 11/6, 11/7, 11/8, 11/9, 11/10, 11/11, 11/12, 11/13

I dont want to do after they pick a date, i'd like to display their ONLY possible dates.

Posted: Nov 06, 2009 08:57 PM

View 2 Replies!   View Related
AJAX :: Calendar Extender Not Showing All Days?
My calendar extender not showing all dates.

Dates after 20th are getting hided under Todays date

Posted: Jun 05, 2008 07:23 AM

View 2 Replies!   View Related
AJAX :: Calendar Width / Display Only 5 Days Instead Of 7 Days?
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


Posted: Feb 26, 2011 11:48 AM

View 3 Replies!   View Related
AJAX :: AJAX Calendar Extender - Make Calendar Disappear When Another Calendar Opens?
I am using Framework 2.0, ASP.NET AJAX 1.0 and Visual Studio 2005.I am using 2 Ajax Calendar Extender in my page. I am using a text box and html image control and setting the TargetControlID to the test box id and the PopupButtonID to the image control name. When i click the first image the calendar pops up and without choosing a date if i click the second image the second calendar control opens on top of the first calendar control. Is there any way i can make the previous one disappear without choosing a date leaving the calendar control associated with the last image clicked.

Posted: Nov 17, 2010 04:19 AM

View 2 Replies!   View Related
C# - Selecting Multiple Days (10 Days) In A Calendar Control?
There is a calendar control in

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.

Posted: Dec 7 10 at 5:40

View 1 Replies!   View Related
AJAX :: Using AJAX Calendar Extender Instead Of Calendar Control Possible On ASPX Page?
Currently, I am using Calendar control on ASPX page. Instead, I want to use AJAX Calendar Extender control because of the animation effect and the way it moves between years making if much more impressive than Calendar control.Is it possible to display Calendar extender on page permanently, just like Calendar control?

Posted: Jul 15, 2010 07:44 AM

View 2 Replies!   View Related
AJAX :: Calendar Extender Hides Behind DropDownList In ModalPopup Extender?
Ajax Calendar Extender hides behind DropDownList In ModalPopup Extender

Posted: Aug 25, 2008 10:45 AM

View 10 Replies!   View Related
AJAX :: Calendar Control - Disable Dates (calendar Extender)?
does anyone know if it is possible to disable some of the dates available for selection. For example, on opening the calendar all the dates before today are grayed out so that it is only possible to select dates in the future.On my site I am using two calendar controls which are representing a start date of an event and an end date. In the end date calendar I would like to disable all dates before the selected start date.Is anything like this possible with the calendar control?e

Posted: Sep 23, 2007 06:50 PM

View 36 Replies!   View Related
AJAX :: Client PC Can't Pop Calendar Extender
I have some aspx pages where I was using a date picker. I changed the datepickerwith AJAX calendarextender which I can pop by clicking on the associated textbox when I am viewing this page on the server itself. But on theclient PC I can't pop the calendar.This textbox and calendarextender are created in a gridview.

<asp:GridView id="EmpList" runat="server" Caption="Employee Personal Data"
AutoGenerateColumns="False" DataKeyNames="RECID, ENumber"
<asp:BoundField HeaderText="E/Number" DataField="ENumber" sortexpression="ENumber" readonly="True"/>
<asp:BoundField HeaderText="E/Name" DataField="EName" sortexpression="EName"/>
<asp:TemplateField HeaderText="Date Joined" sortexpression="DOJ">
<ItemTemplate><asp:Label ID="lblDOJ" Runat="Server" Text='<%# Eval("DOJ", "{0:d}") %>' /></ItemTemplate>
<asp:TextBox ID="txtDOJ" runat="server" Columns="8" text='<%# Eval("DOJ", "{0:d}") %>' ReadOnly="True"></asp:TextBox>
<asp:CalendarExtender ID="txtDOJEx" runat="server" TargetControlID="txtDOJ"></asp:CalendarExtender>

Is there anything that I am missing?

Posted: Sep 16, 2010 03:00 AM

View 4 Replies!   View Related
AJAX :: Use A Calendar Extender On A Textbox
i want to use a calender extender on a textbox, but it doesn't do much.

Posted: Feb 07, 2010 02:39 PM

View 7 Replies!   View Related
AJAX :: Calendar Extender Within FormView?
I have downloaded the AJAX Toolkit for .Net 3.5 I want to add a calendar popup for a field called Date Finished, I added the ScriptManager from the AJAX Extensions toolbox, and then I went into the source for Edit Mode on my webform, and added in the CalendarExtender. I get no error messages when compiling or running this, but the calendar does not pop up.


Posted: May 05, 2010 03:28 PM

View 6 Replies!   View Related
Ajax Calendar Extender Not Working?
I've made a new project with one page and a reference to AjaxControlToolkit.dll

The calendar extender below doesn't work, what have I done wrong?

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" >
<head runat="server">
<title>Untitled Page</title>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<ajaxToolkit:CalendarExtender runat="server" TargetControlID="TextBox1" CssClass="ClassName" Format="MMMM d, yyyy" />

Posted: Jun 1 10 at 14:05

View 2 Replies!   View Related
AJAX Calendar Extender Got Blurred?
i m facing a problem in calendar extendar.....i have used a calendar in the ajax accordian....when i click the heading of accordian, the calendar shows up...but after that wheni clickhe calendar image button, it displays the calendar but it is blurred.....that is the white background is some where elseand the dates some where else..the display of calendaris completely distributed..the other calendar extendar in the same project are working fine..

Posted: Jun 26, 2010 09:39 AM

View 1 Replies!   View Related
AJAX :: Calendar Extender Pops Up On Its Own?
I'm having problems with the calendar extendar on my textbox popping up when any event fires on the page.I didn't start having this issue until i implemented a second extend (MaskEdit) to my textbox, when i eliminated the (MaskedEdit) the issue still occured. '

<asp:Label ID="startDateLab" runat="server">Start Date: </asp:Label>


Posted: Jan 12, 2010 02:21 PM

View 6 Replies!   View Related
AJAX :: Calendar Extender Not Working With IE8?
I am using Calender Extender on one of my page and it is not working as expected on IE8. The problem i am facing is when i click on calender image calender shows for a fraction of second and goes away. It is really annoying and the same thing is working fine on Firefox and Chrome. Here is the code i am using .....

<asp:TextBox ID="txtPurchaseDate" runat="server" Width="80px"></asp:TextBox>

Posted: Jun 10, 2010 02:27 AM

View 1 Replies!   View Related
AJAX :: Calendar Extender With Several Forms?
I use CalendarExtender on page with several form tags. Top form has css style "display: none;" and has not runat="server" attribute. CalendarExtender has been placed in second form, that is visible and has runat="server" attribute. Ajax toolkit try add calendar's container to fist form and does not show this one to user. How i can tell CalendarExtender use form by Id.

Posted: Dec 08, 2009 01:13 PM

View 5 Replies!   View Related
AJAX :: Set Calendar Extender Initial Value?
When I am in edit mode, how can I set the calendar that is displayed to the value that is in the Text box ?

How I did it below with SelectedDate="DatePaid" is not corect

VS2010 VB


Posted: Nov 21, 2010 07:06 PM

View 2 Replies!   View Related
AJAX :: Can Not Set Calendar Extender Position?
I am using the following codeto open a calendar when the user clicks on an image button. My problem si that the calendaris displaying at the top of thepanel:



The image button is at the bottom. So the calendar is supposed to be visible beside the button and a text box. Instead it displays around 250 px above it. I can see the calendar but not where it should be.The same code works perfect in my local copy but not on my development server.Also, TargetControlID doesnlt seem to work (on both local and server copies). When I click on the text box, nothing happens.

Posted: Nov 25, 2009 12:26 PM

View 6 Replies!   View Related
AJAX :: Disable Past Dates In Ajax Calendar Extender?
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.

Posted: Jan 31, 2011 04:23 AM

View 6 Replies!   View Related
AJAX :: Show Both Date And Time Using Ajax Calendar Extender?
I'm using ajax calendar extender to store an event in database. I also need the time of event, when i select the date.. Is there anyway to display both date and time using ajax calendar extender?

Posted: Mar 19, 2010 09:43 AM

View 2 Replies!   View Related
AJAX :: Disable Weekends On Ajax Calendar Extender?
Is there anyway to disable weekends on ajax calendar extender?

Posted: Aug 25, 2010 07:09 AM

View 7 Replies!   View Related
AJAX :: MaterPage Ajax Calendar Extender Not Working?
AJAX with MasterPage not working. Setup simple test site below, no error just not working. TIA



Posted: Aug 24, 2010 01:30 PM

View 2 Replies!   View Related
AJAX :: Does The Calendar Extender Have Year Navigation
I think the calendar extender of the ajax control toolkit is pretty cool. The demos don't have a year navigation, and one can only navigate monthly. In other words, if you wanna pick a date in 2010, you will have to click more than 24 times! That's a lot of work.I peeked into the sample web site's source code and the documentation and could not figure out if year navigation has been made an option with this calendar extender.BTW, I sorta feel that the search functionality of this web site needs to be improved. First of all, it's very slow, 2nd, I searched for "calendar" and nothing returns,

Posted: Nov 14, 2007 03:48 PM

View 6 Replies!   View Related
AJAX :: Another Stab At Calendar Extender Year Only?
A few posts in the last year or so with folks trying to get the calendar extender to work with year only. I know folks will say, "Hey make a dropdownlist!". not always. in my particular application I am havingyears that potentially would need to go back40+ years, and I'd rather not have a dropdown with 40+ values in it. Not to mention in a few years have to update it again.

So building off of I am trying to get it to be a Year Only view. Here's my code.



What I am having an issue with is that this code technically works. It works when I have the alert() in there. I take that alert out and it has weird behavior. Selecting the first or last cell in the calendar control without the alert will jump decades. For example I will click 1989 and I'll get 1969 in the texbox with the extender on it.I'm pretty sure I am lost in the loop somewhere or I have a elementary code/logic error. But after spending way too much time messing with this I figured another set of trained eyes might be able to help.This if resolved would be a nice feature to be able to have at the communities finger tips, an ajax year selector.

Posted: Jan 28, 2010 08:22 PM

View 2 Replies!   View Related
AJAX :: Calendar Extender For Finacial Year?
need current finacial year when i select a date from calendar extender.i use the below function and it working fine without master page but not it working in master page.Error is :-_selectDate is null or not an object


Posted: Mar 24, 2010 04:34 AM

View 6 Replies!   View Related
AJAX :: How To Create Calendar Extender Dynamically
I'm trying to create a calendar extender dynamically on my application. For that i am using the following code:


THe problem is that i'm having a runtime exception, on the OnPreRender of the ExtenderControlBase.cs saying that "A control with ID "filtrodatainicio" could not be found. I'm pretty sure the problem resides in the fact that i'm creating both the text box and the extender dynamically but i can't quite figure out what should i change to make this work.

Posted: Mar 29, 2011 03:29 PM

View 3 Replies!   View Related
AJAX :: Calendar Extender Date Format
I've added the calendar extended from the control toolkit to my page so I can select the date for a text box.I've set the textbox to read only so the user has to use the calendar to pick the date, but when I try insert data I get the following error:

SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.It doesn't like the date format because it's doing it the American way (Month, Date, Year).If I input it manually and use 27/03/2008 it works, but if I select the 27th from the Calendar it will use 03/27/2008.

Posted: Mar 11, 2008 09:06 AM

View 5 Replies!   View Related
AJAX :: Format Sat, Sun To Different Color On Calendar Extender?
how to format Sat, Sun to different color for calendar extender? I have this CSS but I don't know how to modify it,[Code]....

Posted: Dec 03, 2009 09:03 PM

View 5 Replies!   View Related
AJAX :: Calendar Extender Not Saving Dates?
I am quite new to the toolkit and have run into a problem where I havean ASPX page with3 textboxes linked to calendar extenders. I have a ImageButton to populate the textboxes with the date, but the2 problems occur:1.The date appears correct in the textboxes, but I am getting an errorsaying a sting to date conversion error occured.2. When saving my data using the UATDate_CalendarExtension.SelectedDate value, the date in the text box is not saved, it keeps the previously saved date.

Posted: Apr 13, 2010 01:57 PM

View 3 Replies!   View Related
AJAX :: Disable The Title From Calendar Extender?
When using calendar extender, clicking on the title, i.e. month pulls up a month view. Additionally, clicking on the year pulls up the year view.Would anyone know how to disable this feature in calendarextender? I would like the calendar to work as is, allowing tomove to next and previous months by the arrow, butNOT allowing you to click the month name, and not displaying the month view and year

Posted: Feb 22, 2010 09:09 PM

View 2 Replies!   View Related
AJAX :: Disable The Calendar Extender From Code Behind?
i need to set the textbox associate with the calendar extender to read only and i dont want the calendar to show when i click on the textbox.take notice i had the textbox inside a formview and i need to set it from the code behind.

Posted: Mar 22, 2011 09:34 AM

View 1 Replies!   View Related
AJAX :: Getting Date AND Time From Calendar Extender?
We have a project requirement to modify the existing AJAX Calendar Extender so that it sends the selected date and current time back to the associated textbox. Here is an example from a test page:


The default format for a Calendar Extender is 'd', which produces a short date. So we tried changing the format to 'G', which should produce a long date with time down to the second. Unfortunately, that caused a javascript error that the format was wrong. Following an example, we changed the format to that which is above. No javascript errors but the time for the selected date is always midnight or 00:00:00. We're trying to figure out how to set the default time to the current time. Has anyone done this and, if so, how did you accomplish it?

Posted: Apr 22, 2009 07:31 PM

View 13 Replies!   View Related
AJAX :: Best Way To Select Time In The Calendar Extender?
Probably the solution is very simple but can't find a solution in the web about this... Is there a way to select time in theCalendar extender? Need to specify also the time when a user select the date.

Posted: Jan 07, 2010 04:55 PM

View 1 Replies!   View Related
AJAX :: Why Isn't Calendar Extender Working In This Code
I am using a detailsview control in my form and I want to use the Ajax calendar extender control with some of the fields.

After I have connected the textboxes to the extender and when I click on them there is no calendar displayed.

If this makes any difference I am containing the detailsview in a regular panel control which I make visible through a button click.

Here is the code for the detailsview:


Posted: Apr 26, 2010 10:11 PM

View 4 Replies!   View Related
AJAX :: Calendar Extender - Show Only Few Years?
I wanna use calender extender, but with 2 modifications.

1.) The calender itself must contain the 2 dropdown lists (one for year and other for month) and below these 2 lists there are dates (1 through 31) on selecting that the calender disappeares.

2.) Is it possible to have calender show only few years for example if I use calender for Age purpose then I want users to select only 1920 through 2000 so calender shows only those no of years.

Posted: Apr 11, 2010 09:49 AM

View 12 Replies!   View Related
AJAX :: Save The Date Using Calendar Extender?
I have a calenderextender in a form with the following properties.</ajaxToolkit:


So the date selected by the CalenderExtender, the value gets displayed in the txtDeadLine.Text. The problem is when i save the data, the date displayed in the txtDeadLine.text becomes empty and the date is not saved.
How do i save the date using CalenderExtender. I can save the date using the normal Calender.

Posted: Aug 22, 2010 12:32 PM

View 21 Replies!   View Related
AJAX :: Calendar Extender Date Change?
I'm a happy user of th Calendar extender, it's soooooo much better then the original calendar control. Iwould like to make itso that if the user selects a date after a certain date, the textbox controlstays blank. On my form Icreate everything dynamically. Soon page_initthe whole form is created and put in a view. I usea table to align everything as I want it. The form is a check form where the user has tocheck radiobuttons to give an answer. At 11lines he also has toselect a date. Here iswhere the calendar extendercomes in. It all works fine, but I want to make some kindof prevention so the user cannot select date in the future. How can I do this?

Posted: Apr 11, 2010 02:11 PM

View 4 Replies!   View Related
AJAX :: Calendar Extender Is Not Working In IE7 After Postback?
We have implemented ajaxtoolkit version: 3.5.40412.0, and my web application is not AJAX enabled. We have included ajaxtoolkit binary reference in our web application. In one of the page, calendar extendar is working fine when it rendar first, after postback it's not working at all in IE7, but it's working fine in Mozilla. The sample code is as below, [ We are not getting any javascript or HTML tag error ]


Posted: Sep 09, 2010 08:49 AM

View 5 Replies!   View Related
AJAX :: Calendar Extender And TextBox Set To ReadOnly In C#?
I placed a TextBox on the screen, then put an image on, then placed the Calendar Extender control on. By clicking the Image (using the PopupButtonID), the calendar pops-up. I was able to put together my own little CSS file and it looks great. Select the date, and the TextBox is populated with the date. Click to get the report based on the date(s) entered, and *poof* broken. There's a validation control that checks to see if the date was set.

if (DateFrom.Text == "---" || DateTo.Text ==

The issue really doesn't appear to be with this check. (Note: the initial value of the TextBox is set to '---' just to highlight what's in the TextBox for the user). When I went into Debug, and added the DateFrom.Text and DateTo.Text values, they would always be displayed as their default value of "---" in the watch list. It couldn't pick up the new values that were set by Calendar Extender control.

However, that issue only appears if I set the TextBox to ReadOnly = true, or Enabled = false. If the TextBox is left as a typical TextBox, Enabled and not ReadOnly, then it all works fine. But doing that raises other issues... if the user enters values into the TextBox manually, and it's intended to be a DateTime value, then it requires more validation of the values.

Ideally, I should be able to use the Calendar Extender control, set the TextBox to ReadOnly, so the user cannot put an invalid value in the box, and they can get their report.

Posted: Jun 02, 2007 04:30 AM

View 16 Replies!   View Related
Copyright 2005-08, All rights reserved