Solved

asp.net c# ajax toolkit

Posted on 2014-02-08
6
364 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
  • 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
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 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…

743 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

12 Experts available now in Live!

Get 1:1 Help Now