| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 762 人关注过本帖
标题:请问大家
只看楼主 加入收藏
小小可爱
Rank: 1
等 级:新手上路
帖 子:35
专家分:0
注 册:2008-4-18
收藏
 问题点数:0 回复次数:4 
请问大家
请问大家一个问题  我搞了一个网站  为什么页面 第一次打开 就是无法显示  一定要刷新一下才显示出来
但是有时候一打开又可以  真是怪
我在说清楚点 就是打开首页后会显示   点连接的地方 show.asp 这个地方 就不显示了  就一定要刷新才会显示出来

首页连接是:<table width="100%" height="194" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td align="center" valign="top"><br>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="33%" height="115" align="center" valign="top">
<table width="98%" height="77" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td colspan="2"><a href="show.asp?id=<%=rs("id")%>"><img src=subimage.asp?id=<%=rs("id")%>&pic=big border="0"></a></td>
                          </tr>
                          <tr valign="top">
                            <td height="30" colspan="2"><b><%=rs("subsname")%></b></td>
                          </tr>
                          <tr>
                            <td colspan="2"><%=replace(rs("content"),chr(13),"<br>")%></td>
                          </tr>
                          <tr>
                            <td width="44%" height="30" valign="bottom"><font color="#FF0000">
<%=rs(4)%></font>  <%=rs("subsunit")%></td>
                            <td width="50%" align="center" valign="bottom"><a href="check.asp?id=<%=rs("id")%>"><img src="image/bu.gif" width="12" height="12" border="0">立即订购</a></td>
                          </tr>
                        </table></td>



连接到 show.asp 的页面




<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%response.Buffer=true%>  
<!--#include file="conn.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="inc/check.asp"-->
<!--#include file="top.asp"-->
<%
dim SQLin
id=request("id")
SQLin=insql(id,1,0)
if SQLin="true" then
 Response.redirect"error.asp?msg=data_error_false2"
end if%>
<%
y=session("dllevel")
if y="" or y="0" then
ak="iftj"
else
ak="jiage"&y
end if
sql="select top 1 ealin_subs.id as id,ealin_subs.meo as meo,ealin_subs.subsnum as subsnum,ealin_subs.subsname as subsname,ealin_subs.content1 as content1,ealin_ as cname,ealin_subs.price as price,ealin_subs.subsunit as subsunit,ealin_subs."&ak&" as jiage,class.info as info from ealin_subs,class where ealin_subs.id="&id&" and ealin_ order by ealin_subs.id"
Set rs=Server.CreateObject("ADODB.RecordSet")
rs.open sql,conn,1,1
if rs.bof or rs.eof then
Response.redirect"index.asp"
end if
id=rs("id")
cname=rs("cname")
subsname=rs("subsname")
price=rs("price")
jiage=rs("jiage")
subsnum=rs("subsnum")
meo=rs("meo")
subsunit=rs("subsunit")
info=rs("info")
info=replace(info,chr(13),"<br>")
info=replace(info,chr(32),"&nbsp;")
temp=rs("content1")
if temp<>"" then
content = replace(rs("content1"),chr(13),"<br>")
else
content="<font color=red>还没说商品的详细说明,请咨询管理员!</font>"
end if
rs.close
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=webname%>--<%=subsname%></title>
<link href="data/main.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.td1 {
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-top-style: solid;
    border-bottom-style: solid;
    border-top-color: #cccccc;
    border-bottom-color: #cccccc;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body background="image/background.gif" leftmargin="0" topmargin="0">
<!--#include file="ad.asp"-->

<table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td class="border">
<table width="766" height="364" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
        <tr>
          <td width="200" height="364" align="center" valign="top" class="border3">
            <table width="95%" height="364" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="355" align="center" valign="top" ><!--#include file="userlogin.asp"--><!--#include file="kefu.asp"--></td>
              </tr>
            </table></td>
          <td align="center" valign="top" class="border2"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="25" align="center" background="image/sub_bg.gif">
            <% =cname%>
          </td>
        </tr>
        <tr>
          <td height="50" valign="top" class="tdborder">
            <%  =info%>
          </td>
        </tr>
      </table>
      <br><br>
       <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="22%" height="120" align="center" valign="middle" class="td1"><a href="show.asp?id=<%=id%>"><img src=subimage.asp?id=<%=id%>&pic=small border="0"></a></td>
          <td width="78%" valign="top" class="td1">
            <TABLE cellSpacing=0 cellPadding=5 width="100%"
                              align=right border=0>
              <TBODY>
                <TR bgColor=#f5f5f5>
                  <TD height=18><B>编?号:</B><% =subsnum %></TD>
                  <TD height=18><b>服务商:</b><% =webname %></TD>
                </TR>
                <TR bgColor=#FFFFFF>
                  <TD height=18 colspan="2"><B>名?称:</B><%=subsname%></TD>
                </TR>
                <TR bgColor=#f5f5f5>
                  <TD width="49%" height=18><B>市场价:</B><FONT color=#FF0000><%=price%></FONT> <%=subsunit%></TD>
                  <TD width="51%" height=18><B><%if session("ealin_dllevel")<>"" then%><%=session("ealin_dllevel")%><%else%>会员<%end if%>价:</B><%if session("ealin_uid")<>"" then %><FONT color=#FF0000><%=jiage%></FONT> <%=subsunit%><%else%><FONT color=#FF0000>登录查询 </FONT><%end if%></TD>
                </TR>
              </TBODY>
            </TABLE></td>
        </tr>
      </table>
       
            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="20" colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td height="32" colspan="2" valign="top"><%=content %></td>
              </tr>
              <tr>
                <td width="38%" height="25" align="center"><a href="check.asp?id=<%=id%>"><img src="image/buy.gif" width="79" height="21" border="0"></a></td>
                 <form name="form3" method="post" action="">
                  <td width="62%" align="center">查看
                    <select name="id" size="1" onChange="MM_jumpMenu('parent',this,0)">
                                                  <option value="" selected><%=cname%>其他商品</option>
                                                  <%
sql="select id,subsname from ealin_subs where cname='"&cname&"' and subsnum<>'"&subsnum&"'"
rs.open sql,conn,1,1
while not rs.eof
%>
                                                  <option value="show.asp?id=<%=rs("id")%>"><%=rs("subsname")%></option>
                                                  <%
rs.movenext
wend
rs.Close()
set rs=nothing

%>
                                               </select>
                                              </td></form>
              </tr>
            </table>
    </td>
        </tr>
      </table>
</td>
</tr>
</table>
</body>
</html>

<!--#include file="end.asp"-->

[[it] 本帖最后由 小小可爱 于 2008-7-29 23:02 编辑 [/it]]
搜索更多相关主题的帖子: 页面 
2008-07-29 22:56
小小可爱
Rank: 1
等 级:新手上路
帖 子:35
专家分:0
注 册:2008-4-18
收藏
得分:0 
老大们 帮忙看看那里出错
2008-07-30 20:30
longjw
Rank: 1
来 自:湖南
等 级:新手上路
帖 子:61
专家分:0
注 册:2008-7-18
收藏
得分:0 
回复 1# 小小可爱 的帖子
你把全代码都发出来了,谢谢有心思看啊~~~~~!
    你是在本地机子测试还是用远程服务器测试啊?
       我做网站在本地机子测试有时会出现你所讲的问题
但我上传后就没出现了。因为我用的是Win XP英文版的
2008-07-31 08:39
小小可爱
Rank: 1
等 级:新手上路
帖 子:35
专家分:0
注 册:2008-4-18
收藏
得分:0 
我是传到购买的空间上的
我这个问题怎么都没有人关注帮忙啊

[[it] 本帖最后由 小小可爱 于 2008-8-3 02:24 编辑 [/it]]
2008-08-03 02:23
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
收藏
得分:0 
如果网页在单机IIS环境测试无问题,那么就可能使网站空间的问题了。
2008-08-03 15:24
快速回复:请问大家
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016361 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved