 |
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
|
|
|

September 29th, 2006, 05:45 AM
|
Authorized User
|
|
Join Date: Nov 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

September 29th, 2006, 12:26 PM
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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.
|

September 30th, 2006, 04:45 AM
|
Authorized User
|
|
Join Date: Nov 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

September 30th, 2006, 10:15 PM
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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.
|

October 2nd, 2006, 02:44 AM
|
Authorized User
|
|
Join Date: Nov 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

October 2nd, 2006, 09:32 AM
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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.
|
|
 |