一个不明白的问题
请教个问题
这样写没有反映,这里bigclass= '3 '
<%if rsxl( "id ")= ' "&bigclass& " ' then %>
<option value= " <%=rsxl( "id ")%> " selected> == <%=trim(rsxl( "productname "))%> </option>
<%else%>
<option value= " <%=rsxl( "id ")%> "> <%=rsxl( "id ")%> <%=trim(request( "anclassid "))%> <%=trim(rsxl( "productname "))%> </option>
<%end if %>
改成这样就对了,
<%if rsxl( "id ")= "3 " then %>
<option value= " <%=rsxl( "id ")%> " selected> == <%=trim(rsxl( "productname "))%> </option>
<%else%>
<option value= " <%=rsxl( "id ")%> "> <%=rsxl( "id ")%> <%=trim(request( "anclassid "))%> <%=trim(rsxl( "productname "))%> </option>
<%end if %>
不知道为什么的
------解决方案--------------------bigclass= '3 '
改成bigclass=3
------解决方案-------------------- <%if rsxl( "id ")= ' "&bigclass& " ' then %>
_______
<%if rsxl( "id ")=bigclass then %>
看看??bigclass是个变量..