Solved

ajax or asp.net calendar

Posted on 2014-02-16
2
401 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
[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
2 Comments
 
LVL 7

Accepted Solution

by:
Kishan Zunjare earned 500 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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Suggested Solutions

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
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…

734 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