Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Validation for AJAX Calendar Control - ASP.NET C#

Posted on 2009-05-19
3
1,230 Views
Last Modified: 2012-06-22
Hi,

I am using AJAX Calendar Extender in my webpage.

I want to add validation that users cannot select future dates when they click this calender.

How can I do this?

NOTE: The validation should happen when the date is selected in the calender and not when the date is populated in the textbox.

Thanks!
0
Comment
Question by:meetpd
3 Comments
 
LVL 5

Assisted Solution

by:Krummelz
Krummelz earned 200 total points
ID: 24428926
The Caledar Extender has a OnClientDateSelectionChanged Event which you can find under the extender's properties in design view. (its not under the events tab in the properties window). You can use that to just check that the date is greater than today's date, and if so, handle the problem.
0
 
LVL 11

Accepted Solution

by:
Muhammad Ousama Ghazali earned 300 total points
ID: 24429976
Please check the following link on a detailed discussion on limiting the Calendar for certain dates. Perhaps it may help to acheive your requirements:
http://www.karpach.com/ajaxtoolkit-calendar-extender-tweaks.htm
 
0
 

Expert Comment

by:devnewbee
ID: 32890354
I appreciate the responses.  I am actually want to find a solution that simply looks at a date, and checks to see if it is a weekend or holiday and subtract 28 working days accordingly.  It seems staright forward, but I am trying to find a solution that is easy to admisiter and willnot require a DB table to be maintained in the middle of it all.

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Save ms data to server side. 19 55
asp.net mvc5 6 21
asp.net web application 3 29
Upgrade code from VS 2010 to VS 2015 7 16
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question