分页显示的时候
控件的问题 分页时我把页码显示在<option>里,怎么样能在跳转(选中某一页)后,<select>里选中的是我现在这一页?
比如
<select>
<%for i=1 to pagecount%>
<option value=<%=i%>><%=i%></option>
<%next%>
</select>
这样的话每次默认选的是第一页
怎么样才能我选第2页后,选中的是第2页,form是提交给自己的这个asp文件.
我试了这样做:
<select>
<%for i=1 to pagecount%>
<option value=<%=i%> <%if i=request.form("pageno") then response.write("selected") end if%>><%=i%></option>
<%next%>
</select>
但似乎不行