Solved

ajax or asp.net calendar

Posted on 2014-02-16
2
381 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 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

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

OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
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 the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

760 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