Response.Write转换为html与ASP结合的语句

来源:百度知道 编辑:UC知道 时间:2024/06/25 19:52:02
<%sub lb_cd
response.write "<center><table width=60% border=0 cellpadding=0 cellspacing=0 align=center ><tr>"
response.write "<td width='100%' align=center>"
if ipage = "1" then
response.write "首页  "
else response.write "<a href='news.asp?page=1&type="+ktype+"' >首页</a>  "
response.write "<a href='news.asp?page="+cstr(cint(ipage-1))+"&type="+ktype+"'>上一页</a>"
end if
if cint(ipage) = rs.pagecount then
response.write "<font color=#666666>[第"+ipage + "页|共"+cstr(allpages) + "页]</font>  末页 "
else
response.write "<font color=#666666>[第"+ipage + "页|共"+cstr(allpages) + "页]</font><a href='news.asp?page="+cstr(cint(

<%sub lb_cd()%>
<center><table width=60% border=0 cellpadding=0 cellspacing=0 align=center ><tr>
<td width='100%' align=center>
<%if ipage = "1" then %>
首页
<%else%>
<a href='news.asp?page=1&type=<%=ktype%>' >首页</a>
<a href='news.asp?page=<%=cstr(cint(ipage-1))%>&type=<%=ktype%>'>上一页</a>
<%
end if
if cint(ipage) = rs.pagecount then
%>
<font color=#666666>[第<%=ipage%>页|共<%=cstr(allpages)%>页]</font> 末页
<%else%>
<font color=#666666>[第<%=ipage%>页|共<%=cstr(allpages)%>页]</font><a href='news.asp?page=<%=cstr(cint(ipage+1))%>&type=<%=ktype%>'>下一页</a>
<a href='news.asp?page=<%=cstr(rs.pagecount)%>&type=<%=ktype%>'>末页</a>
<%
end if
%>
</center>&