Solved

asp.net c# ajax toolkit

Posted on 2014-02-08
6
376 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
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 

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 500 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
This article discusses how to implement server side field validation and display customized error messages to the client.
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)

691 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