问题描述
我希望有一个简单的解决方案,我没有看到
更有经验的人。
我想要的一切要做的就是将选项标记标记为选中....
<%
hourCounter = 1
do while hourCounter < = 12%>
< option value ="<%= hourCounter%>" <%if hourCounter =
hour(rsCalendarEdit(" fld_calendar_DateTime")))然后Response.write"
selected"结束如果%>><%= hourCounter%>< / option>
<%hourCounter = hourCounter + 1
循环
%>
如果时间是PM,那就麻烦了。你可以看到我有一个问题。是
这里有一个方法或属性,我可以实现,我没有看到?
谢谢!
I''m hoping for an easy solution to this that I''m not seeing that
someone more experienced will.
All I want to do it mark an option tag as selected....
<%
hourCounter = 1
Do WHILE hourCounter <= 12 %>
<option value="<%=hourCounter%>" <%If hourCounter =
hour(rsCalendarEdit("fld_calendar_DateTime")) Then Response.write "
selected" End If %>><%=hourCounter%></option>
<% hourCounter = hourCounter + 1
Loop
%>
The trouble is if the time is "PM" I have a problem as you can see. Is
there a method or property here I can implement that I''m not seeing?
Thanks!
推荐答案
<%= hourCounter%>
< / option>
<%hourCounter = hourCounter + 1
循环
%>
< / select>
< / form>
或者你不想使用军事时间吗?
<%=hourCounter%>
</option>
<% hourCounter = hourCounter + 1
Loop
%>
</select>
</form>
Or do you not want to use military time?
这篇关于简单方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!