Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 2nd, 2007, 05:01 PM
Authorized User
 
Join Date: Jan 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default calendar page selection

i have created 12 html pages featuring a january-december month by month list of important dates. i am trying to make it so the proper page loads for the proper month. (if it is february 1st, the february callendar page loads, if it is august 19, the august page will load). i have asp code in my head that gathers the current date from the server, if that helps...any ideas? thanks.

New to this planet
__________________
New to this planet
 
Old March 2nd, 2007, 06:27 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Use a select case on the page that needs to display the page

SELECT CASE
CASE "Jan"
  'load january
CASE "Feb"
  'load Feb
End Select

and so on

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old March 2nd, 2007, 06:52 PM
Authorized User
 
Join Date: Jan 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for the reply. can you be more specific? i am guessing that i can use get month() to find the month number. then i can use the case logic to load the particular url based on the month number. i am quite new to asp so i am not sure how this exactly would look in asp code. for example, if my month pages were called jan.asp, feb.asp, and so on?

New to this planet





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic selection of next page based on list box s gurupot JSP Basics 1 December 24th, 2007 06:03 AM
outlook calendar on web page Seeker55 Javascript How-To 0 March 28th, 2006 03:30 PM
Submitting a form after a calendar date selection programmher Javascript How-To 2 August 2nd, 2005 06:02 PM
Radio Button activates a selection box in the page rnerilla JSP Basics 0 April 23rd, 2004 12:14 AM
Radio button activates a selection box in the page rnerilla PHP How-To 1 April 22nd, 2004 01:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.