AJAX :: Disable Dates Of One Calendar Based On Date Selected In Another Using CalendarExtender

Apr 1, 2013

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

View 1 Replies


Similar Messages:

AJAX :: Disable Dates In One Calendar Based On Date Selected

May 7, 2015

I want to block Year From Calender .I have 2 text box in first text box i select Start Financial Year And in second Text End Financial Year.When i Select 2009 year in first text box then in second texbox all dates privious from 2009 will be block.

View 1 Replies

Web Forms :: Calendar Is Removing The Programmed Selected Dates Upon Selecting A New Date On The Calendar

Jan 14, 2011

When a user selects an item from dropdownlist ,, certain dates (from DB) gets selected on Calendar automatically with the color pink >> This is working FINE The problem happens after that, when i want to select any other date >> the dates which were selected automatically before (that came from DB) get deselected !! I want them to stay selected, so i know which are the dates that already saved in DB ! So, the calendar is removing the programmed selected dates upon selecting a new date on the calendar object.

View 4 Replies

AJAX :: Disable Past Dates In Calendarextender?

Apr 10, 2010

i want to know how to disable past dates in ajax calendar extender so user can not select past dates.

View 1 Replies

AJAX :: CalendarExtender - Disable Specific Dates

Dec 15, 2013

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.

View 1 Replies

How To Change The Data In Telerik's RadGrid Based On Calendar's Selected Dates

Feb 24, 2010

I was creating another usercontrol with Telerik's RadGrid and Calendar.

[code].....

The problems are, (1) when I click the submit button. the data in the RadGrid is not changed. (2) how can we check if there is nothing selected in the Calendar controls, because there is a date (01/01/0001) set even if we do not select anything from that calendar, thus Calendar1.SelectedDate != null is not enough.

View 1 Replies

AJAX :: Disable Past Dates In Ajax Calendar Extender?

Jan 31, 2011

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 Replies

AJAX :: Calculate Date Difference Between Two Dates When Using Calendar Extender?

May 7, 2015

I want to calculate the total number of days from two "asp:Textbox" with datepicker. The result should be placed in the third "asp:TextBox"

the format of the calendar date is: dd/mm/yyyy. for example: 18/01/2015 and 21/01/2015

How to implement this in C#?

<asp:TextBox ID="txtDate1" runat="server" ></asp:TextBox>
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate1" PopupButtonID="imgPopup1" Format="dd/MM/yyyy" />
<asp:TextBox ID="txtDate2" runat="server"></asp:TextBox>
<cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtDate2" PopupButtonID="imgPopup2" Format="dd/MM/yyyy" />
<asp:TextBox ID="txtTotalDays" runat="server" ReadOnly = "true"></asp:TextBox>

View 1 Replies

Web Forms :: Disable The Dates On The Calendarextender Control?

Jan 8, 2011

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

View 7 Replies

AJAX :: Perform Search In Database When Date Is Selected Using CalendarExtender

Jan 12, 2014

May i know how to query the data in textbox when select the date from ajakcontrol tool kit ?

<asp:TableRow ID="TableRow4" runat="server" ForeColor="Teal">
<asp:TableHeaderCell BorderColor="Black" BorderWidth="1" BackColor="#0C0C25" ForeColor="White">FromDate :</asp:TableHeaderCell>
<asp:TableHeaderCell BorderColor="Black" BorderWidth="1" Width="200" HorizontalAlign="Left" ForeColor="Red" BackColor="ControlLight">

[Code] .....

View 1 Replies

AJAX :: Change The Format Of The Date Returned By The Calendarextender Based On Regional Settings?

Jan 24, 2010

Is it possible to change the format of the date returned by the calendarextender based on regional settings?
Also, is it possible to tell the datetime object how the date string is formatted?

View 2 Replies

AJAX :: Determine Age And Validate Minimum Age From Date Selected In CalendarExtender Control

May 8, 2013

i 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 Replies

Web Forms :: Validate Age When Birth Date Is Selected In AJAX CalendarExtender Control

Mar 29, 2013

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

View 1 Replies

AJAX :: Disable Past Date In Calendar Extender

Feb 26, 2014

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

View 1 Replies

Web Forms :: How Disable Past Dates On Calendar

May 21, 2010

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 Replies

AJAX :: Automatically Add One Year To Selected Date Of Calendar Using JavaScript

May 7, 2015

<cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</cc1:ToolkitScriptManager>
<asp:TextBox ID="TextBox1" runat="server" />
<asp:ImageButton runat="server" ID="ImageButton1" ImageUrl="~/Calendar.png" />
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1"

[Code] ...

This is the code I want to add 1 year here Sender._SelectedDate

<script type="text/javascript"> function OnClientDateSelectionChanged(sender, args) { $find("<%=CalendarExtender2.ClientID %>").set_startDate(sender._selectedDate); }</script>

View 1 Replies

AJAX :: How To Clear Selected Date Of Calendar Control Using JavaScript

Aug 13, 2013

How to clear the selected date of a Calendar control using JavaScript. Also, while doing this, how can I prevent page refreshing?

View 1 Replies

C# - AJAX Calendar Extender - Binding Null To Text As Selected Date?

Jan 20, 2011

I have an AJAX Calendar Extender inside an ASP.NET Repeater, which binds date data from a table and allows users to change this. I have an issue however - if the date is null, it returns an error as it cannot bind null as a selected date. Are there any ways around this?

View 1 Replies

AJAX :: How To Pacific The Calendar Control Display The Incorrect Selected Date

Jun 4, 2010

I have a Ajax Calendar Extender in my C# application. For some reason when the time zone is set to Pacific the calendar control display the incorrect selected date.

For example if user selects 02/02/10 when the page renders and finishes whatever is doing the calendar control display a date of 02/01/10. P.S I am NOT subtracting any days from the selected date.

View 3 Replies

AJAX :: How To Get The Selected Date On The Calendar Extender To Show In UK Format Of Dd/mm/yyyy

Jan 8, 2010

Is there a way to get the selected date on the calendar extender to show in UK format of dd/mm/yyyy

View 3 Replies

AJAX :: Age Validation When Date Of Birth Is Selected In Calendar Extender Control

May 25, 2013

I have a textbox to input DOB,i used ajax calendar to enter DOB,what validation expression should i use so that user below age 15 cannot get registered...

View 1 Replies

AJAX :: Calendar Extender - Show Only Dates Of Current Month Not Previous Dates When User Clicks On Button

Sep 22, 2010

i want to use a ajax calender extender in which when user clixcks on button caleder show only dates of current month not previous dates.i dont want to disable dates. i should not apper on current month calender. means it should start from 1 and end to 30 or 31

View 3 Replies

Forms Data Controls :: Calendar DayRender : Disable Dates?

Jan 16, 2011

i am trying to solve this problem but cann't think of a perfect solution.suppose i have a list of days

String[] dayInWeek = { "3", "5", "7" } these out of the 7 days in a week

now i want to disable all the weekdays in the calander (disable these days in each week).how can i do that?

View 5 Replies

AJAX :: Displaying Current And Selected Date From Calendar In The Dropdown List Boxes

Feb 17, 2011

I got one web page which is developed by using Asp.net. and in that page I have got one tab control which developed by using Ajax control toolkit (tab container). In that tab container i have got three tab pannels. In the first tab pannel have got two drop down list boxes and one image control box. wat I was trying to do is that by using calendar extender control in ajax control toolkit i was trying to display a day in the first drop down list box and month and year in second drop down list box. when user click on image control during run time a small calender will pops up and then user will select the propective date according to there choice and when they have finish selecting the date from the calender a day will display on first drop down list box and month and year will display on second drop down list box.

I was keep trying to do that but i was failed. then i took one test box from the toolbox and i was got success in displaying the user selected date in the text box by using ajax calender extender. How to display that date instead of one textbox into two separate drop down list boxes from which a user can select manual date from drop down list as well and from the calendar as well also when the page loads, the two drop down list boxes must show current date ( by default)

View 1 Replies

Data Controls :: Update AJAX Calendar Selected Date To Database In GridView

Nov 22, 2015

I have a gridview in which am binding all the values from database and when am editing the gridview by taking a ajax calendar extender in edititemtemplate its giving me this error.

AspCode

<asp:TemplateField ItemStyle-Width="250px" HeaderText="DeliveryDate">
<ItemTemplate>
<asp:Label ID="lblDeliveryDate" runat="server"
Text='<%# Eval("DeliveryDate")%>'></asp:Label>

[Code] .....

C# Code

protected void OrderDetails_RowUpdating(object sender, GridViewUpdateEventArgs e) {
DateTime del = (Convert.ToDateTime((TextBox)(OrderDetails.Rows[e.RowIndex].FindControl("txtDelDate"))));
}

Error : Unable to cast object of type 'System.Web.UI.WebControls.TextBox' to type 'System.IConvertible'.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved