HighTechTalks DotNet Forums  

Calendar Date Question..

ASP.net Web Controls microsoft.public.dotnet.framework.aspnet.webcontrols


Discuss Calendar Date Question.. in the ASP.net Web Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Bill.Bohanon@gmail.com
 
Posts: n/a

Default Calendar Date Question.. - 07-09-2007 , 12:06 PM






I have an equipment checkout app that I have that allows people to
checkout a certain piece of equipment for a certain date and it works
using a asp.net calendar control using vb.net and SQL as the backend.
It works great, but now the request has come in that they want to be
able to reserve a piece of equipment for more than just one day at a
time. What I am trying to figure out is when folks select more than 1
day on the calendar control(I.E. - They select 3 days on the
calendar), how to get the date range or multiple selected dates to get
parsed back into individual date values that can be input into a
database on a per date basis.

For Example: Jenny reserves the projector for a week on the calendar
control. The application needs to parse out each date(to a value) for
that week she selected so as to input a reservation for each date for
that projector so folks cannot reserve it again.

Thanks in advance,
BB


Reply With Quote
  #2  
Old   
David R. Longnecker
 
Posts: n/a

Default Re: Calendar Date Question.. - 07-09-2007 , 03:46 PM






BB-

While no solution, I can provide my experience. I never found a way, without
creating a new Calendar control and changing how it handled selection, to
accomplish this. Originally, I had just a Start calendar and an End calendar,
and figured the days between. That got a bit annoying.

I recently rewrote that page and, since we already have a license for the
set, I used a telerik r.a.d. calendar control. It allows multiple day selection.
http://www.telerik.com/DEMOS/ASPNET/Calendar/Examples/Functionality/MultiDaySelection/DefaultCS.aspx
When you place their calendar control, you add an attribute of "EnableMultiSelect=True"
to the object. It's worked like a champ, but it's unfortunate that it seems
the standard .net control is missing this.

HTH.

-dl

--
David R. Longnecker
http://blog.tiredstudent.com

Quote:
I have an equipment checkout app that I have that allows people to
checkout a certain piece of equipment for a certain date and it works
using a asp.net calendar control using vb.net and SQL as the backend.
It works great, but now the request has come in that they want to be
able to reserve a piece of equipment for more than just one day at a
time. What I am trying to figure out is when folks select more than 1
day on the calendar control(I.E. - They select 3 days on the
calendar), how to get the date range or multiple selected dates to get
parsed back into individual date values that can be input into a
database on a per date basis.

For Example: Jenny reserves the projector for a week on the calendar
control. The application needs to parse out each date(to a value) for
that week she selected so as to input a reservation for each date for
that projector so folks cannot reserve it again.

Thanks in advance,
BB



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.