Response.Write转换为html与ASP结合的语句
<%sublb_cdresponse.write"<center><tablewidth=60%border=0cellpadding=0cellspacing=0ali...
<%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(ipage+1))+"&type="+ktype+"'>下一页</a> "
response.write "<a href='news.asp?page="+cstr(rs.pagecount)+"&type="+ktype+"'>末页</a>"
end if
response.write "</center></td></tr></table>"
end sub%>
不要使用response.write 该怎么转换为html与ASP结合的语句呢 展开
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(ipage+1))+"&type="+ktype+"'>下一页</a> "
response.write "<a href='news.asp?page="+cstr(rs.pagecount)+"&type="+ktype+"'>末页</a>"
end if
response.write "</center></td></tr></table>"
end sub%>
不要使用response.write 该怎么转换为html与ASP结合的语句呢 展开
2个回答
展开全部
<%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></td></tr></table>
<%end sub%>
<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></td></tr></table>
<%end sub%>
展开全部
asp高级技术
http://www.528s.com/asp
http://www.528s.com/asp
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询