> Hi All,
>
[quoted text clipped - 9 lines]
> But when my page loads, the drop down box shows the last week in the
> list (52), instead of current week which is 43.
View Source to see the actual output.of you server-side code. If that
does not provide the clue for you, you need to show us how to reproduce
the symptom: show us the rest of the code to generate the options.
Bob Barrows

Signature
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
navin - 25 Oct 2007 22:33 GMT
On Oct 25, 11:45 pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
> > Hi All,
>
[quoted text clipped - 22 lines]
>
> - Show quoted text -
I am using the below code to populate the drop down with all the 52
weeks.
<p><select size="1" name="actDate">
<%
Dim wkCnt
for wkCnt = 1 to 52
%>
<option selected value="<% DatePart("ww", Now()) %>"> <% wkCnt %> </
option>
<% Next %>
</select></p>
thanks,
Navin
McKirahan - 25 Oct 2007 23:32 GMT
> On Oct 25, 11:45 pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
> wrote:
[quoted text clipped - 39 lines]
>
> </select></p>
Perhaps you want the following:
<p>
<select name="actDate" size="1">
<% Dim wkCnt, wkNow
For wkCnt = 1 To 52
wkNow = ""
If wkCnt = DatePart("ww",Now) Then wkNow = " selected"
%>
<option value='" & wkCnt & "'" & wkNow & ">" & wkCnt & "</option>"
<% Next %>
</select>
</p>