Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ajax or asp.net calendar

Posted on 2014-02-16
2
Medium Priority
?
408 Views
Last Modified: 2014-03-04
I have from date and to date textbox in asp.net, both are using asp.net ajax toolkit to get pop up calendar. In addition, I have a db table called blockdates have block date column.

What I need to do is to read the db tables for example the db table has date 01/01/2013, 02/01/2013. I need to get both dates and send to ajax calendar and block / gray out the date so the end user can't select it.

How can I do that? I really need some experts to walk me through how to do that because I never work like this situation in the past.

Thanks
0
Comment
Question by:CoolDev2014
2 Comments
 
LVL 7

Accepted Solution

by:
Kishan Zunjare earned 2000 total points
ID: 39864462
Hi,

First you need to get those dates from database. If you are using asp.Net then get those dates filled in dataTable or something.

The CalendarExtender class has a SelectedDate property that you could set from filled datatable and put this code in page load event.

You can further extend css class as well to make it gray or something.

Hope this helps
- Kishan
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 this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

886 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