• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 297
  • Last Modified:

ASP Calendar Input into Form

I am an ASP newbie, and I was wondering if someone could post some code, or a link to code, that would allow somebody to pick a from-to date.

In other words, let's say I am putting together a vacation request form (because I am), and I want to pick a from date for my first day off, and a to date for my last day off. I then want to be able to submit that information so my manager can review the dates, and approve or reject.

I hope this makes sense! Thanks in advance for any help I get!
0
mckeough
Asked:
mckeough
  • 5
  • 4
  • 2
2 Solutions
 
CyrexCore2kCommented:
ASP.Net has a built in calendar but personally I hate it.

I much prefer this calendar.

http://www.dynarch.com/projects/calendar/
0
 
mckeoughAuthor Commented:
Lol... Can I query the calendar information like I can an ASP calendar?
0
 
LZ1Commented:
Here is another calendar that is very customizable and one that I use on my companies intranet.
http://www.javascriptkit.com/script/script2/tengcalendar.shtml  
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
mckeoughAuthor Commented:
What is so bad about the ASP calendar control? Why don't you guys like it? I'm not opposed to other calendars, but I am curious about why you guys decided to stay away from the ASP control.
0
 
LZ1Commented:
Much like CyrexCore2k, I don't really care for it myself.  The one I suggested works terriffic  for everything I needed it too.  I never really needed to even use the ASP version.  The one above works just fine for me. :)
0
 
CyrexCore2kCommented:
The two main issues I have with the ASP.Net calendar is 1) it's not client side scripted so it's really slow and 2) it's ugly. The calendar I suggested is javascript and has a number of really attractive skins.

/off topic. LZ1's calendar is ugly too. ;)

Yes you can use the calendar to query a database. The calendar can be instantiated to update the value in a text field or a hidden field. Just point it to whichever one you want and then use the value of that field to construct your SQL query.
0
 
CyrexCore2kCommented:
You can see this calendar in action here http://www.dynarch.com/demos/jscalendar/
0
 
CyrexCore2kCommented:
I usually use it as a flat calendar, http://www.dynarch.com/demos/jscalendar/simple-2.html gives an example of how to populate a field with it.

Instead of using

window.location = "/" + y + "/" + m + "/" + d + "/index.php";

change it to

myField.value = m+"/"+d+"/"+y;
0
 
mckeoughAuthor Commented:
Thank you both. I am testing these out now. I should know within 24 hours which one I like the best.
0
 
CyrexCore2kCommented:
If you're going to use a hidden field I recommend at first you use a regular text field while debugging and testing so you can see how it behaves and when the event actually fires etc...
0
 
mckeoughAuthor Commented:
I liked both solutions, but I liked Cyrex's the best. I wanted to award points to both of you because both are something I can use. Thanks to both of you for the help. I'll be posting more newbie questions as I build out the page. I sure do appreciate the help!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 5
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now