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
Solved

ajax or asp.net calendar

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
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…

808 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