?
Solved

asp.net c# ajax toolkit

Posted on 2014-02-08
6
Medium Priority
?
379 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
Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

 

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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The viewer will learn how to dynamically set the form action using jQuery.
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)
Suggested Courses

762 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