Solved

Validation for AJAX Calendar Control - ASP.NET C#

Posted on 2009-05-19
3
1,222 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
javascript question 6 36
What is MicroStrategy.NET? 2 45
Whats wrong with this query 21 39
getting id from database 5 24
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now