Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Month function
Message
 
To
08/07/2003 11:00:08
David Brunelle
Université de Sherbrooke
Sherbrooke, Quebec, Canada
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00808001
Message ID:
00810065
Views:
18
this is usually how i code for my month combo box that selects the current
month
<select name="month">
<option value="">[ Month ]</option>
<%
Dim monthnow
For monthnow = 1 to 12
%>
 <option value="<% = monthnow %>"<% If Month(Now()) = monthnow then %>
selected<% End If %>><% = MonthName(monthnow) %></option>
<%
Next
%>
</select>
works perfectly fine with me. let me know if you'll have problems

- eL!n0r3

note : excuse the "<%" the asp open tag doesn't work here for some reason
**elinore**
---------------------
"The most powerful weapon on earth,
is the human soul on fire" - Ferdinand Foch
Previous
Reply
Map
View

Click here to load this message in the networking platform