?
Solved

asp.net c# ajax toolkit

Posted on 2014-02-08
6
Medium Priority
?
381 Views
Last Modified: 2014-02-26
i have a website using asp.net and ajax toolkit for rental car website.
now i have a new task basically we need to block particular date range on the front end website calendar (pop up using ajax).

so on the admin side, i have control to take block period like 01/01/2014 to 01/05/2014 and save into a database table called blockDatePeriod. so one car may have several rows for the date block.

My question is if I use ajax pop up calendar, how can i read the database blockdateperiod table and send the dates to the ajax pop up calender so those block date will be grayed out?

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
  • 3
  • 3
6 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 39845250
0
 

Author Comment

by:CoolDev2014
ID: 39845517
i need the example that the block dates came from database. and mine will have multiple rows (blocked period)
in the db.
0
 
LVL 82

Expert Comment

by:leakim971
ID: 39845548
so you don't know how to read to the database, right?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:CoolDev2014
ID: 39845658
I know how to read the db. but don't know how to put them in a working model.
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 2000 total points
ID: 39845669
Check this article to see how to send the dates to the client side (browser) : http://www.dotnetcurry.com/showarticle.aspx?ID=109

So you just need to read the database to get the dates.
You may create a string array of theses dates if your want.
"01/01/2014,01/02/2014"
0
 

Author Comment

by:CoolDev2014
ID: 39846049
thank you for your information. I will take a try and see I can make it working. I am very new to asp.net toolkit and never work with the calendar before.

Actually, the hardest thing for me is the block dates are different. some may be just one day
like 01/01/2014 to 01/01/2014 and other may be 01/12/2014 to 01/30/2014.

Hope you know what i mean. :-D and thank you for your time and effort to communicate with me in the weekend.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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

649 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