Solved

Validation for AJAX Calendar Control - ASP.NET C#

Posted on 2009-05-19
3
1,233 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
[X]
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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

740 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