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 September 29th, 2006, 05:45 AM
Authorized User
 
Join Date: Nov 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to print dates of month in DROP DOWN

Dear All,

I want to print dates of the month in a drop down menu. Actually i am designing a page which will extract transactions between the supplied dates by the user. Is there any way i can print dates in a drop down menu? LIke FROM (date) TO (date)?

Farzan Q.
BS(TeleCommunication)
Iqra University.
__________________
Farzan Q.
MS(TeleCommunication)
Mohammad Ali Jinnah University.
 
Old September 29th, 2006, 12:26 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

Return your result set and do something like this:

<SELECT id=name>
<%
While not rs.eof
%>
<OPTION value=something><%=rs("date")%></OPTION>
<%wend%>
</SELECT>
--Stole this from a moderator

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
 
Old September 30th, 2006, 04:45 AM
Authorized User
 
Join Date: Nov 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by dparsons
 Return your result set and do something like this:

<SELECT id=name>
<%
While not rs.eof
%>
<OPTION value=something><%=rs("date")%></OPTION>
<%wend%>
</SELECT>
--Stole this from a moderator

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
I know how to populate drop down menu but i want to know is there any function we can use that can generate dates of the month and then i can populate those dates in drop down!

Farzan Q.
MS(TeleCommunication)
Mohammad Ali Jinnah University.
 
Old September 30th, 2006, 10:15 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

Oh i see, this page may help you:

http://authors.aspalliance.com/nothi...ngmn_67&aid=67

--Stole this from a moderator

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
 
Old October 2nd, 2006, 02:44 AM
Authorized User
 
Join Date: Nov 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by dparsons
 Oh i see, this page may help you:

http://authors.aspalliance.com/nothi...ngmn_67&aid=67

--Stole this from a moderator

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
I have visited the mentioned link. But it only display the days of the month. What i want to display is as follows:

<select>1/10/06<select>
<select>2/10/06<select>
<select>3/10/06<select>
<select>4/10/06<select>
<select>5/10/06<select>
.....
....
.
.
.
....
...
<select>31/10/06<select>

This is how i want to populate my drop down!

Farzan Q.
MS(TeleCommunication)
Mohammad Ali Jinnah University.
 
Old October 2nd, 2006, 09:32 AM
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

I understand that you may be frustrated with this problem and there is nothing like real world advice from other programmers, but the internet is your greatest resource, use it to your advantage.

http://www.daniweb.com/techtalkforums/thread12176.html

--Stole this from a moderator

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting month name to month number kalyanykk SQL Server 2005 7 August 19th, 2008 10:37 PM
How to print dates of month in DROP DOWN doosti Classic ASP Professional 3 October 2nd, 2006 09:30 AM
query Current Month, Month+1, Month+2, Month+3 anterior Access 2 September 24th, 2006 08:25 PM
Dates Skips Over Month harpua Pro PHP 0 January 31st, 2006 02:10 PM
ASP - Drop Down Box with Dates HelpMe Classic ASP Databases 1 October 21st, 2004 10:39 AM





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