.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Ajax Calendar extender tool -How to disable cells?

Posted By:      Posted Date: October 05, 2010    Points: 0   Category :ASP.Net


I am using an Ajax Calendar Extender  tool in my application.I do wanna disable the past days calendar cells so that the user wont be able to click or select those cells .Can anybody help me ??


i wanna like.....
1. http://air.irctc.co.in



View Complete Post

More Related Resource Links

Ajax Calendar Extender Question (about disable pass date)

HiI am wondering if it has anyway to disable the past day on the Ajax Calendar Control, previously, when we use CalendarExtender, we need to put a asp:Calendar and a textbox. we can use FindControl to find the calendar control and disable the past days.I am wondering is there anyway  could do the same stuff?Another question is how could I read the user selected date to the Date variable?Do i need to convert the date from the TargetControl ? E.g. Convert.ToDateTime(txt_DATE.text) ?Please let me know if you want me to explain more.Many thanksChi 

MaterPage Ajax calendar extender not working


AJAX with MasterPage not working.

Setup simple test site below, no error just not working. TIA

    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="ajaxDev.WebForm1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
  <asp:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" 
    Enabled="True" TargetCo

Problem with Ajax calendar extender visibility

sir i am using ajax calender extender in textbox below this textbox i am using a panel there is a gridview that show data.problem is when i click the textbox half of the calender id hiden behind the panel how to solve this problem. 

MVC + WCF + Ajax tool kit( autocomplete extender)

I need to implement the above combination and am totally lost . Any help , pointers, useful links will be appreciated

Ajax Calendar Extender Within Gridview

I'm tasked with creating an editable gridview which contains several columns for input including a Start Date and End Date column. All columns are created dynamically at runtime based on a user's selection in a dropdown list. I would like to have an Ajax Calendar Extender attached to all text boxes in the Start and End Date Columns but since the table is made dynamically I need to add it in code behind. Most examples I've seen add ajax calendars to a gridview using template columns but i can not do this in my case. The following is my handling of the rowdatabound event - How do i edit this to attach a calendar extender to columns 1 and 2?1 protected void GridView1_RowDataBound(Object sender, GridViewRowEventArgs e) 2 { 3 TextBox txt; 4 if (e.Row.RowType == DataControlRowType.DataRow) 5 { 6 for(int i = 0; i < e.Row.Cells.Count; i++) 7 { 8 for (int j = 0; j < e.Row.Cells[i].Controls.Count; j++) 9 { 10 if (e.Row.Cells[i].Controls[j] is TextBox) 11 { 12 txt = (TextBox)e.Row.Cells[i].Controls[j]; 13 if (txt != null && Page.IsPostBack) 14 { 15 txt.Text = Request.Form[txt.UniqueID]; 16

How to display the date only till current date in ajax calendar extender .

Hi,1) How can i display the date only till current date in ajax calendar extender ?2)How to validate the date in one TextBox with the Date in another TextBox ?    Please Help me ...

Calendar control - disable dates? (calendar extender)


Hi there,

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?

Thanks for your help,

ajax calendar extender problem


I have a problem with Ajax calendar extender (version 3.5).
What i do is post from a form to the specific form and i have a textbox an image
and the cal extender.
When the page i post to is loading i get an error on

Sys.Application.add_init(function() {
    $create(Sys.Extended.UI.CalendarBehavior, {"button":$get("Image1"),"id":"CalendarExtender1"}, null, null, $get("YearsTextBox"));

The error is
Microsoft JScript runtime error: 'Sys.Extended.UI' is null or not an object

Here is my markup:
<asp:TextBox ID="YearsTextBox" runat="server" ReadOnly="true"
            style="z-index: 1; left: 167px; top: 113px; position: absolute"></asp:TextBox><asp:Image ID="Image1" runat="server" ImageUrl="images/calendar17189.GIF" height="16" width="16"
             style="z-index: 1; left: 330px; top: 113px; position: absolute" />
        <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="YearsTextBox" PopupButtonID="Image1">

Now the image picture is showing

ajax calendar extender



i have used ajax calendarextender for dates in my form. However when i click on the calendar and choose a date , my asp controls get filled with a lot of &nbsp and at times also generate duplicate textboxes thus creating havoc on my form. Please help.

calendar extender


i want to put date into 2 combo box

combo1 = date, and combo2= month

can you help me?

Open different page using Ajax Modal PopUp Extender Control

The article Open different page using Ajax Modal PopUp Extender Control was added by Chintan Dave on Thursday, July 15, 2010.

You May use Modal Popup Extender to open some part of the page as Popup. But there we don't have any property to open other html or aspx page in Popup window.We can do it using IFrame control. What we have to do, just add IFrame control in Panel that

Ajax Popup Extender: Crashing the Browser



    I am using Ajax Popup extender as confirmation window. In my page, I am having multiple post backs for different cases. If I display ajax Popup extender, first few times it is working fine. After that, It is crashing the browser and i have to close the browser or it is closing the browser automatically.

Any Idea why it is happening? Did i miss anything?

My App details

IE Version : 6.0

.Net version: 3.5

Ajax version: 3.0.30512.20315



Dynamic Ajax Calender Extender

hi i dynamically create Calender Extender and set TargetControl ID and PopupControl Id as dynamically created TextBox Its works fine in windows XP but i tried in Windows 7 return lots of javascript errors value can't be null then something.....   if i didn't add that dynamically created Calendar Extender than no pbm if add then got this errors wats the wrong in windows 7 OS   i m using Vs2008 SP1, Latest Ajax Control Toolkit 

Ajax Calendar won't appear unless browser scroll bar is at the bottom (IE7)

Hi, I have an ajax calendar in the middle of my page. I already wrapped it in a div with position:relative but the calendar doesn't show up unless the scrollbar is at the bottom.Thanks

is .Net 2.0 supports ajax tool kit controls

Hi All, I'm using .Net 2.0 version..i'm trying  to use Asynfileupload control of ajax tool kit in to my project...but it giving error like this: Security Exception Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. so... pls suggest me any solution..pls.. Help me...

Is there a way to disable the day and week links within the Calendar itself?

I'm able to hide the top icons. I'm wondering if there's a way to keep a user from clicking the top of a date or the side of the week and navigating them to another calendar view. I only want to keep them within the month view. Thanks in advance! -Mike

That Calendar tool !!

OK - so I have an ObjectDataSource on a page that is driving a Grid View - no problem.The data happens to be from a simple diary which displays a date, a diary entry and a diary entry type (eg holiday, meeting etc etc)No problem so far !So I want to now use that nice Calendar Tool to show dates on the calendar tool that have entries in the diary - usual thing to say change the background colour of a day cell to show there is an event on that day.But my question is - can I link the calendar to the ObjectDataSource thats alrwady on the page or do I have to write a new query etc in the code behind page especially to drive the calendar ?So here is my Grid View....<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource2"> <Columns> <asp:BoundField DataField="dateID" HeaderText="dateID" InsertVisible="False" ReadOnly="True" SortExpression="dateID" /> <asp:BoundField DataField="diaryDate" HeaderText="diaryDate" SortExpression="diaryDate" /> <asp:BoundField DataField="diaryEntry" HeaderText="diaryEntry" SortExpression="diaryEntry" /> <asp:BoundFi
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend