.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 Question (about disable pass date)

Posted By:      Posted Date: September 01, 2010    Points: 0   Category :ASP.Net
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 

View Complete Post

More Related Resource Links

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 ...

Ajax Calendar extender tool -How to disable cells?



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



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. 

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 change the date format using AJAX calendar control tookit


I want to desplay date like (21-Sep-2010)

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

question on passing variable to Ajax Extender Toolkit Slideshow


I need to create a slideshow that displays all the images in a folder that have filenames that match a specific criteria.  The criteria is based on a querystring.  Is there a way to get a the querystring into the slideshow's webservice?  If not, does anyone have any suggestions?  I've been looking and looking but everything I've seen has one or more things that I need that it can't do.

question on ajax toolkit slideshow extender's webservice


I need to set up the slide show based on a querystring parameter.  I thought I had this figured out, but I clearly don't understand something about how the webservice works. 

I have this in the .aspx page:

<asp:Button ID="btnPrev" runat="server" Text="Prev" />
    <asp:Button ID="btnPlay" runat="server" Text="Play" />
    <asp:Button ID="btnNext" runat="server" Text="Next" />
    <asp:Label ID="lblDesc" runat="server" />
    <cc1:SlideShowExtender ID="SlideShowExtender1" runat="server" BehaviorID="SSBehaviorID"

shortcut for Todays Date in for ajax calender extender



Im using Ajax calender extender in my asp.net page on clicking asp.net button it show calender popup on selecting date its binding on textbox all are working fine,

what i need is i need to set shortcut for todays day.. on clicking button its show calender on press some keyboard it bind todays date in textbox..

How to set shortcut..?

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



change calendar date backColor base on data from db


I want to  change calendar date backColor base on data from db,  I only have vistual 2003 !

on mean time I have

<asp:DataGrid id="DataGrid1" style="Z-INDEX: 102; LEFT: 23px; POSITION: absolute; TOP: 271px"
		    runat="server" Font-Size="XX-Small" Font-Names="Verdana" AutoGenerateColumns="False" Visible="False">
           <asp:BoundColumn DataField="subject" HeaderText="Title"></asp:BoundColumn>
           <asp:BoundColumn DataField="posttimestart" HeaderText="Post date"></asp:BoundColumn>


Sub DayRender(ByVal source As Object, ByVal e As DayRenderEventArgs)
        Dim i As Integer
        For i = 0 To DataGrid1.Items.Count - 1
            If (DataGrid1.Items(i).Cells(1).Text = e.Day.Date) Then
                e.Cell.BackColor = Color.DarkOrange

            End If

    End Sub

when I click the day wich have data in db it change  color , but I want the page load it change color !

Thank you!

Calendar control and date


I have a calendar control , text box and a button . The calendar is invisible in the page load event. When I click on the button,It becomes visible. On selection of a date it becomes the value of the Text Box.
Having said that, my issue is that when this calendar becomes visible, it ruins the arrrangement of the controls on the  page. As I have other controls on the page they  comepletely get displaced. Is there a way to overlap this calendar over the other controls.
I had seen a control that was  some time ago and it was on the client side(probably using javascript or a third party control ) and It wud overlap the other controls and once a value was selected it became invisible.

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