asp跳转到第几页代码修改
我以下的这段代码无法跳转,请高手帮忙(我是初学者希望能帮忙说明一下不胜感激)<tdwidth="30%"align="right"bgcolor="#FFFFFF"><%...
我以下的这段代码无法跳转,请高手帮忙 (我是初学者 希望能帮忙说明一下 不胜感激)
<td width="30%" align="right" bgcolor="#FFFFFF"><%
If PageNo > 1 Then
Response.write "<a href=""?PageNo=1"">首页</a> "
Response.write "<a href=""?PageNo="&PageNo-1&""">上页</a> "
Else
Response.write "首页 "
Response.write "上页 "
End if
%>
<select name="select" onchange="MM_jumpMenu('self',this,0)" style="width:40px;">
<% For i = 1 to PCount %>
<option value="" selected="selected" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
<% Next %>
</select>
<%
If PageNo < PCount Then
Response.write "<a href=""?PageNo="&PageNo+1&""">下页</a> "
Response.write "<a href=""?PageNo="&PCount&""">尾页</a>"
Else
Response.write "下页 "
Response.write "尾页"
End if
%>
</td>
这个是主要出错的地方:
<select name="select" onchange="MM_jumpMenu('self',this,0)" style="width:40px;">
<% For i = 1 to PCount %>
<option value="" selected="selected" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
<% Next %>
</select> 展开
<td width="30%" align="right" bgcolor="#FFFFFF"><%
If PageNo > 1 Then
Response.write "<a href=""?PageNo=1"">首页</a> "
Response.write "<a href=""?PageNo="&PageNo-1&""">上页</a> "
Else
Response.write "首页 "
Response.write "上页 "
End if
%>
<select name="select" onchange="MM_jumpMenu('self',this,0)" style="width:40px;">
<% For i = 1 to PCount %>
<option value="" selected="selected" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
<% Next %>
</select>
<%
If PageNo < PCount Then
Response.write "<a href=""?PageNo="&PageNo+1&""">下页</a> "
Response.write "<a href=""?PageNo="&PCount&""">尾页</a>"
Else
Response.write "下页 "
Response.write "尾页"
End if
%>
</td>
这个是主要出错的地方:
<select name="select" onchange="MM_jumpMenu('self',this,0)" style="width:40px;">
<% For i = 1 to PCount %>
<option value="" selected="selected" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
<% Next %>
</select> 展开
展开全部
<select name="select" onchange="MM_jumpMenu('self',this,0)" style="width:40px;">
<% For i = 1 to PCount %>
<option value="<%=i%>" selected="selected" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
<% Next %>
</select>
试一下行不行!
<% For i = 1 to PCount %>
<option value="<%=i%>" selected="selected" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
<% Next %>
</select>
试一下行不行!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<% For i = 1 to PCount %>
<option value=""
问题出在这里,option的值空的,就算你其他的东西写到天上去了,也无法跳转 :
<option value="?pageno=<%=i%>"
<option value=""
问题出在这里,option的值空的,就算你其他的东西写到天上去了,也无法跳转 :
<option value="?pageno=<%=i%>"
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<% For i = 1 to PCount %>
<option value="<%=i%>" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
这样
<option value="<%=i%>" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
这样
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<option value="" <% If i = PageNo Then Response.write "selected = 'selected'" %> ><%=i%></option>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<% If i = PageNo Then Response.write "selected = 'selected'" end if %>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询