1.asp?页源源码?ҳԴ??
2.我在网上下载了一套asp源码,首页文件是htm的,我直接双击首页文件index.htm,网页浏览器里边看到的页源源码地方门户 源码却是源代码
3.asp.net 分页代码 首页 上一页 1 2 3 4 5 >> …… 30 下一页 尾页
asp??ҳԴ??
第一个:
<tr>
<td colspan="2" align="left" valign="top" class="c">留言内容:<p><%=rs("connet")%></td>
</tr>
<tr>
<td colspan="2" align="left" valign="top" class="c" height="">
..............<a href="del.asp?id=<%=rs("id")%>" style="text-decoration: none"><font color="#">删除</font></a>.................<a href="reg.asp" style="text-decoration: none"><font color="#">我要留言</font></a>.........</td>
</tr>
把上面的改成
<tr>
<td colspan="3" align="left" valign="top" class="c">留言内容:<p><%=rs("connet")%></td>
</tr>
<tr>
<td colspan="3" align="left" valign="top" class="c" height="">
..............<a href="del.asp?id=<%=rs("id")%>" style="text-decoration: none"><font color="#">删除</font></a>.................<a href="reg.asp" style="text-decoration: none"><font color="#">我要留言</font></a>.........</td>
</tr>
第二个:
<!--header begin-->
<%
response.write "<div id=mainbox>"&_
"<table border=0 width=% cellpadding=4 style=border-collapse: collapse class='top_table'>"&_
"<form name=form action=Product_ListSearch.asp method=get>"&_
" <tr><td colspan=2 height=5></td></tr>"&_
" <tr>"&_
" <td><a href=index.asp title=返回首页><img src=uploadpic/></a></td>"&_
" <td align=right>"&_
" <table><tr><td class=cartimg></td><td><a href=Cart_List.asp>查看我的购物车</a>(<font color=#FF>"
if session("y")="" then response.write "0" else response.write session("y")
===================================
response.write "<td><a href=index.asp title=返回首页><object classid='clsid:DCDB6E-AE6D-cf-B8-' codebase='/pub/shockwave/cabs/flash/swflash.cab#version=6,0,,0' width='' height=''>"&_
"<param name='movie' value='logo.swf'>"&_
"<param name='quality' value='high'>"&_
"<embed src='logo.swf' width='' height='' quality='high' type='application/x-shockwave-flash' width='' height=''></embed></object></a></td>"
%>
希望我的回答对你有所帮助。
我在网上下载了一套asp源码,网页首页文件是htm的,我直接双击首页文件index.htm,页源源码pc文件源码浏览器里边看到的网页能耗监测源码却是源代码
把这套源码放进IIS里边,浏览器里输入localhost没输入index.htm的页源源码话,可能访问的网页是你的IIS默认的首页而不是index.htm。
把源码上传到空间,页源源码绑定域名后首页文件又打不开了,网页可能是页源源码因为这空间的默认首页的文件在你的源码的文件里没有。
解决方法:找出源码的网页首页是哪个文件是index.html还是index.htm还是index.asp还是其它的哪个文件,(可以查看你的页源源码ios排班源码IIS配置里的默认首页是哪个文件)然后再把空间里的默认首页改成源码的首页文件。
asp.net 分页代码 首页 上一页 1 2 3 4 5 >> …… 下一页 尾页
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org//xhtml" xml:lang="gb" >
<head>
<meta http-equiv="content-type" content="text/html; charset=gb" />
<meta name="author" content="Smiling Dolphin" />
<meta name="keywords" content="design,网页 css, cascading, style, sheets, xhtml, graphic design, w3c, web standards, visual, display, java, javascript, c++, php, jsp, asp, py, pl" />
<meta name="description" content="my favorites language." />
<meta name="robots" content="all" />
<title>仿豆瓣分页原型(Javascript版)</title>
<style type="text/css" title="currentStyle" media="screen">
/* Paginator */
.paginator {
font: .8px normal Arial, Helvetica, sans-serif;
color: #;
margin-top: px;
margin-bottom: 5px;
line-height: %;
background-color: #EEFFEE;
text-align: center;
}
.paginator a, .thispage, .break {
padding: 2px 4px;
}
.paginator .prev {
margin-right: px;
}
.paginator .next {
margin-left: px;
}
.paginator .count {
margin-left: px;
font-size: px;
}
</style>
</head>
<body>
<div id="pagebar" class="paginator"></div>
<script language="javascript" type="text/javascript">
function QueryString(item){
var sValue=location.search.match(new RegExp("[\?\&]"+item+"=([^\&]*)(\&?)","i"))
return sValue?sValue[1]:sValue
}
var count = ;
var perpage = ;
var currentpage = QueryString("page");
if (currentpage==null){
currentpage = 1;
}else{
currentpage = parseInt(currentpage);
}
var pagecount = Math.floor(count/perpage);
if(perpage*pagecount!=count)pagecount++;
var pagestr = "";
var breakpage = 9;
var currentposition = 4;
var breakspace = 2;
var maxspace = 4;
var prevnum = currentpage-currentposition;
var nextnum = currentpage+currentposition;
if(prevnum<1) prevnum = 1;
if(nextnum>pagecount) nextnum = pagecount;
pagestr += (currentpage==1)?'<span class="prev">< 前页</span>':'<span class="prev">< <a href="?page='+(currentpage-1)+'">前页</a></span>';
if(prevnum-breakspace>maxspace){
for(i=1;i<=breakspace;i++)
pagestr += '<a href="?page='+i+'">'+i+'</a>';
pagestr += '<span class="break">...</span>';
for(i=pagecount-breakpage+1;i<prevnum;i++)
pagestr += '<a href="?page='+i+'">'+i+'</a>';
}else{
for(i=1;i<prevnum;i++)
pagestr += '<a href="?page='+i+'">'+i+'</a>';
}
for(i=prevnum;i<=nextnum;i++){
pagestr += (currentpage==i)?'<span class="thispage">'+i+'</span>':'<a href="?page='+i+'">'+i+'</a>';
}
if(pagecount-breakspace-nextnum+1>maxspace){
for(i=nextnum+1;i<=breakpage;i++)
pagestr += '<a href="?page='+i+'">'+i+'</a>';
pagestr += '<span class="break">...</span>';
for(i=pagecount-breakspace+1;i<=pagecount;i++)
pagestr += '<a href="?page='+i+'">'+i+'</a>';
}else{
for(i=nextnum+1;i<=pagecount;i++)
pagestr += '<a href="?page='+i+'">'+i+'</a>';
}
pagestr += (currentpage==pagecount)?'<span class="next">后页 ></span>':'<span class="next"><a href="?page='+(currentpage+1)+'">后页</a> ></span>';
document.getElementById("pagebar").innerHTML = pagestr;
</script>
</body>
</html>