[bo][un]sjzfls[/un] 在 2008-10-29 15:48 的发言:[/bo]
依然有问题,去掉 ; 后
提示
类型不匹配: 'Reuqest'
依然有问题,去掉 ; 后
提示
类型不匹配: 'Reuqest'
Reuqest Request
<select name="newsclass" style="width:85px" onChange="location.href='?clsValue='+this.value"> <% dim ClsValue ClsValue=Request("clsValue") Set Rs1=conn.execute("Select * From newsclass where class in(5,6,7) order by id asc") While Not Rs1.Eof IF ClsValue=Rs1("class") Then Response.Write("<option value="&Rs1("class")&" selected>"&Rs1("title")&"</option>") Else Response.Write("<option value="&Rs1("class")&">"&Rs1("title")&"</option>") End IF Rs1.MoveNext Wend Rs1.Close %> </select> <% IF ClsValue<>"" Then Set Rs=conn.execute("select top 5 * from news where class in(5,6,7) order by id desc") IF Rs.Eof and Rs.Bof Then Response.Write("暂时没有数据") Else While Not Rs.Eof Response.Write(Setlen(Rs("news_head"),18)) Rs.MoveNext Wend End IF Rs.Close End IF %>