Asp程序,提示"请不要在参数中包含非法字符"怎么回事?
this_page=request.ServerVariables("URL")BigClassName="%"
SmallClassName="%"
if request("BigClassName")<>"" then BigClassName=request("BigClassName")
if request("SmallClassName")<>"" then SmallClassName=request("SmallClassName")
..................
function get_left_links()//在左侧显示所有产品列表,包括大类和小类.
set rs_left_links=server.CreateObject ("adodb.recordset")
rs_left_links_sql="select * from BigClass order by orderID,BigClassID asc"
rs_left_links.open rs_left_links_sql,conn,1,1
while not rs_left_links.eof
class_str="link8"
if request("lid")=rs_left_links("BigClassID") then class_str="link10"
set rs_SmallClass=server.CreateObject ("adodb.recordset")
rs_SmallClass_sql="select * from SmallClass where BigClassName='"&rs_left_links("BigClassName")&"' order by orderID,SmallClassID asc"
rs_SmallClass.open rs_SmallClass_sql,conn,1,1
if not rs_SmallClass.eof or not rs_SmallClass.bof then
show_s=1
b_url=this_page&"?BigClassName="&server.URLEncode(rs_left_links("BigClassName"))
b_onclick="javascript:showndv('"&rs_left_links("BigClassID")&"',this)"
else
show_s=0
b_url=this_page&"?BigClassName="&server.URLEncode(rs_left_links("BigClassName"))
b_onclick=""
end if
...................
<a href="<%=b_url%>" onClick="" class="333333_333333-25"><%=rs_left_links("BigClassName")%></a></span></TD>
</TR>//大类超链接
..............
<a href="<%=this_page%>?BigClassName=<%=server.URLEncode(rs_left_links("BigClassName"))%>&SmallClassName=<%=server.URLEncode(rs_SmallClass("SmallClassName"))%>" class="333333_333333-25"><%=rs_SmallClass("SmallClassName")%></a>
//小类操链接
。。。。。。。
大类超链接都没问题,小类中唯独两个老是提示上述问题。如下:
大类:Mobile phone accessories,它的小类是: 1.Batteries 2.Rechargers 3.Others 就是这个Rechargers有上述问题,其它两个小类正常。这是怎么回事呀?请各位大虾帮忙!!!
[ 本帖最后由 dyw675848450 于 2011-4-1 17:48 编辑 ]