以下代码中<asp:DataList ID="DataList1" runat="server">这句话加了runat="server"以后DataList1里的所有东西都显示不出来,怎么办?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="IndexShowTest.aspx.cs" Inherits="IndexShowTest" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>远程医疗网</title>
<link rel="stylesheet" type="text/css" href="images/IndexShowTest/css.css" />
<link rel="stylesheet" type="text/css" href="images/IndexShowTest/commonstyle.css" />
<script type="text/javascript" language="JavaScript" src="images/IndexShowTest/common_form.js"></script>
<script type="text/javascript" language="JavaScript" src="images/IndexShowTest/jquery.js"></script>
<script type="text/javascript" language="javascript" src="images/IndexShowTest/jquery.cluetip.js"></script>
<script type="text/javascript" language="javascript" src="images/IndexShowTest/common.js"></script>
<script type="text/javascript" language="javascript">
var $j = jQuery.noConflict();
$j(function(){
$j('.showhelp').cluetip({splitTitle: '|',width:'auto',showTitle:false,clickThrough:true});
//二三级菜单变动
var mouseout_index=[];
$j("ul.second_nav li").each(function(index){
$j(this).hover(function(){
var _self=this;
clearTimeout(mouseout_index[index]);
mouseout_index[index]=setTimeout(function(){
$j('div.thirdNav',_self).slideDown(200);
},300);
    $j('>a',this).addClass('navcur');
},
function(){
var _self=this;
clearTimeout(mouseout_index[index]);
$j('div.thirdNav',_self).slideUp(200);
$j('>a',this).removeClass('navcur');
}
);
});
$j('#show_hide').show_hide();
switchMenu( $j('#index').get(0) ); });
</script>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
    <form id="form1" runat="server">
    <table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="214"><img src="images/IndexShowTest/logo.gif"width="214" height="87" alt="" /></td>
    <td align="right" valign="top" background="images/IndexShowTest/logo_bg.gif"><div style="position:relative; width:678px;"><div class="mainNav">
<ul id="menu_box">
  <li id="index" onmouseover="selectMenu(this)";><a href="#">远程医疗简介</a> </li>
<li class="dotline"></li>
  <li id="hosting" onmouseover="selectMenu(this)";><a href="#">网络医院</a> </li>
<li class="dotline"></li>
  <li id="domain" onmouseover="selectMenu(this)";><a href="#">专家简介</a> </li>
<li class="dotline"></li>
  <li id="mail" onmouseover="selectMenu(this)";><a href="#">远程会诊预约</a> </li>
<li class="dotline"></li>
  <li id="server" onmouseover="selectMenu(this)";><a href="#">远程教育教学</a> </li>
<li class="dotline"></li>
  <li id="solution" onmouseover="selectMenu(this)";><a href="#">医疗百科</a> </li>
  </ul></div><table width="100%" height="87" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td align="right" valign="top" style="padding-top:10px;"><span class="blue"><a href="#">登录</a> / <a href="#">注册</a></span> | ·<a onclick="style.behavior='url(#default#homepage)';setHomePage('http://www.ychz120.com/');" href="#">设为首页</a> ·<a href="javascript:window.external.addFavorite('http://www.ychz120.com','远程会诊网');">加入收藏</a> ·<a href="#">网站地图</a></td>
      </tr>
      
    </table></div></td>
    <td width="17" align="right"><img src="images/IndexShowTest/logo_R.gif"width="17" height="87" /></td>
  </tr>
  <tr>
    <td height="52" colspan="3" background="images/1nav_bg.gif"><DIV id=topNav>
<DIV class=navArea>
<DIV class=subNav>
<DIV class=l></DIV>
<DIV class=m>
<DIV style="DISPLAY: none;" id=menu_box_0 class=secondNav><UL class=second_nav>
  <LI><A href="#">本站首页</A> </LI>
  <LI><A class=jtdown href="#">远程会诊知识</A>
  <DIV style="DISPLAY: none; LEFT: 40px" class=thirdNav>
  <DIV class=text>
  <DIV class=prolist><A 
  href="#">远程会诊概念</A> <A 
  href="#">远程会诊的发展和现状</A> <A 
  href="#">国内外远程会诊发展概述</A> <A 
  href="#">远程医疗会诊前景展望</A> <A 
  href="#">远程会诊核心技术</A> <A 
  href="#">远程会诊解决方案</A></DIV>
  </DIV>
  <DIV class=navBottom>
  <DIV class=bl></DIV>
  <DIV class=bm></DIV>
  <DIV class=br></DIV></DIV></DIV></LI>
  <LI><A class=jtdown href="#">加入远程会诊网络</A>
  <DIV style="DISPLAY: none; LEFT: 150px" class=thirdNav>
  <DIV class=text>
  <DIV class=prolist><A 
  href="#">会员医院分布图</A> <A 
  href="#">会员医院省市导航</A> <A 
  href="#">会员医院入网流程</A> <A 
  href="#">会诊流程</A> <A 
  href="#">立即加入</A> </DIV>
  </DIV>
  <DIV class=navBottom>
  <DIV class=bl></DIV>
  <DIV class=bm></DIV>
  <DIV class=br></DIV></DIV></DIV></LI>
  <LI><A href="#">成功案例</A></LI></UL></DIV>
<DIV style="DISPLAY: none;" id=menu_box_1 class=secondNav>
<UL class=second_nav>
  <LI><A class=jtdown href="#">医院展示</A> 
  <DIV style="DISPLAY: none; LEFT: 0px" class=thirdNav>
  <DIV class=text>
  <DIV class=prolist><A 
  href="#">网络医院分布图</A> <A 
  href="#">哈尔滨医科大学附属第二医院</A> <A 
  href="#">齐齐哈尔市中医医院</A> </DIV>
  </DIV>
  <DIV class=navBottom>
  <DIV class=bl></DIV>
  <DIV class=bm></DIV>
  <DIV class=br></DIV></DIV></DIV></LI>
  <LI><A class=jtdown href="#">医院推荐</A> 
  <DIV style="DISPLAY: none; LEFT: 50px" class=thirdNav>
  <DIV class=text>
  <DIV class=prolist><A 
  href="#">哈尔滨医科大学附属第二医院</A> <A 
  href="#">齐齐哈尔市中医医院</A> </DIV>
  </DIV>
  <DIV class=navBottom>
  <DIV class=bl></DIV>
  <DIV class=bm></DIV>
  <DIV class=br></DIV></DIV></DIV></LI>
  <LI><A class=jtdown href="#">最近加入</A> 
  <DIV style="DISPLAY: none; LEFT: 180px" class=thirdNav>
  <DIV class=text>
  <DIV class=prolist><A 
  href="#">哈尔滨医科大学附属第二医院</A> <A 
  href="#">齐齐哈尔市中医医院</A> </DIV>
  </DIV>
  <DIV class=navBottom>
  <DIV class=bl></DIV>
  <DIV class=bm></DIV>
  <DIV class=br></DIV></DIV></DIV></LI>
  <LI><A href="#">各地医院分布</A></LI>   
  </UL></DIV>
<DIV style="DISPLAY: none;" id=menu_box_2 class=secondNav>
<UL class=second_nav>
  <LI><A href="#">医疗专家展示</A></LI>
  <LI><A href="#">专家推荐</A></LI>
  <LI><A href="#">最近加入</A></LI>
  <LI><A href="#">专家博客</A></LI>  
  </UL></DIV>
<DIV style="DISPLAY: none;" id=menu_box_3 class=secondNav>
<UL class=second_nav>
  <LI><A class=jtdown href="http://www.chinafu.com/mail-21.htm">预约会诊</A> 
  <DIV style="DISPLAY: none" class=thirdNav>
  <DIV class=text>
  <DIV class=prolist><A 
  href="#">预约会诊介绍</A> <A 
  href="#">会诊方式</A> <A 
  href="#">会诊分类</A> <A 
  href="#">会诊申请</A> <A 
  href="#">会诊时间</A> <A 
  href="#">远程会诊视频</A></DIV>
  </DIV>
  <DIV class=navBottom>
  <DIV class=bl></DIV>
  <DIV class=bm></DIV>
  <DIV class=br></DIV></DIV></DIV></LI>
  <LI><A href="#">开始预约会诊</A></LI>
  <LI><A href="#">专家门诊预约</A></LI>
  </UL></DIV>
<DIV style="DISPLAY: none;" id=menu_box_4 class=secondNav>
<UL class=second_nav>
  <LI><A href="#">远程教学介绍</A></LI>
  <LI><A href="#">远程教学流程</A></LI>
  <LI><A href="#">近期课程</A></LI>
  <LI><A href="#">教学视频</A></LI>
  </UL></DIV>
<DIV style="DISPLAY: none;" id=menu_box_5 class=secondNav>
<UL class=second_nav>
  <LI><A class=jtdown href="#">医疗设备</A> 
  <DIV style="DISPLAY: none;" class=thirdNav>
  <DIV class=text>
  <DIV class=prolist><A 
  href="#">超声影像设备</A> <A 
  href="#">诊查治疗设备</A> <A 
  href="#">内窥镜设备</A> <A 
  href="#">医院管理终端</A></DIV>
  </DIV>
  <DIV class=navBottom>
  <DIV class=bl></DIV>
  <DIV class=bm></DIV>
  <DIV class=br></DIV></DIV></DIV></LI>
  <LI><A class=jtdown href="#">医药知识</A> 
  <DIV style="DISPLAY: none; LEFT: 80px" class=thirdNav>
  <DIV class=text>
  <DIV class=prolist><A 
  href="#">药物常识</A> <A 
  href="#">中医中药</A> <A 
  href="#">偏方秘方</A> <A 
  href="#">民族医药</A></DIV>
  </DIV>
  <DIV class=navBottom>
  <DIV class=bl></DIV>
  <DIV class=bm></DIV>
  <DIV class=br></DIV></DIV></DIV></LI>
  <LI><A class=jtdown href="#">医疗前沿</A> 
  <DIV style="DISPLAY: none; LEFT: 190px" class=thirdNav>
  <DIV class=text>
  <DIV class=prolist><A 
  href="#">生物技术</A> <A 
  href="#">基因工程</A> <A 
  href="#">综合疗法</A> <A 
  href="#">手术新技能</A> <A 
  href="#">诊断新设备</A> <A 
  href="#">药品新进展</A> <A 
  href="#">临床新疗法</A></DIV>
  </DIV>
  <DIV class=navBottom>
  <DIV class=bl></DIV>
  <DIV class=bm></DIV>
  <DIV class=br></DIV></DIV></DIV></LI>
  <LI><A class=jtdown href="#">急救自救知识</A> 
  <DIV style="DISPLAY: none; LEFT: 310px" class=thirdNav>
  <DIV class=text>
  <DIV class=prolist><A 
  href="#">外科急救</A> <A 
  href="#">内科急救</A> <A 
  href="#">妇儿急救</A> <A 
  href="#">其他医疗急救</A> <A 
  href="#">急救自救常识</A> <A 
  href="#">灾难急救自救</A></DIV>
  </DIV>
  <DIV class=navBottom>
  <DIV class=bl></DIV>
  <DIV class=bm></DIV>
  <DIV class=br></DIV></DIV></DIV></LI></UL></DIV>
</DIV>
<DIV class=r></DIV></DIV>
</DIV>
</DIV>
<DIV style="CLEAR: both"></DIV></td>
  </tr>
</table>

解决方案 »

  1.   

    <table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F6F0E9">
      <tr>
        <td width="223" valign="top" style="border-left:2px solid #FFFCF8;"><table width="223" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td style="padding:8px 0 15px;">
              <table width="100%" border="0" cellpadding="0" cellspacing="0" class="leftjiange2">
                <tr>
                  <td>网络医院地区</td>
                </tr>
              </table>
              <table width="85%" border="0" align="center" cellpadding="0" cellspacing="0" class="aboutLeft1" style="margin-top:10px;">
                <tr>
                  <td width="50%"><a href="#">哈尔滨市</a></td>
                  <td width="50%"><a href="#">双鸭山市</a></td>
                </tr>
                <tr>
                  <td><a href="#">齐齐哈尔市</a></td>
                  <td><a href="#">大兴安岭地区</a></td>
                </tr>
                <tr>
                  <td><a href="#">牡丹江市</a></td>
                  <td><a href="#">大庆市</a></td>
                </tr>
                <tr>
                  <td><a href="#">佳木斯市</a></td>
                  <td><a href="#">鹤岗市</a></td>
                </tr>
      <tr>
                  <td><a href="#">伊春市</a></td>
                  <td><a href="#">鸡西市</a></td>
      </tr>
      <tr>
                  <td><a href="#">绥化市</a></td>
                  <td><a href="#">七台河市</a></td>
      </tr>
      <tr>
                  <td><a href="#">黑河市</a></td>
                  <td><a href="#">呼伦贝尔盟</a></td>
      </tr>
      <tr>
                  <td><a href="#">兴安盟</a></td>
                  <td></td>
      </tr>
              </table></td>
          </tr>
        </table></td>
        <td width="2" background="images/heng_jg.gif"></td>
        <td width="725" valign="top" style="border-right:2px solid #FFFCF8; padding-bottom:15px;"><table width="667" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="leftjiange1">
      <tr>
        <td>您的位置:首页 > 网络医院 > 医院展示</td>
      </tr>
    </table>
              <asp:DataList ID="DataList1" runat="server">
                <ItemTemplate>
                    <table width="60%" border="0" cellspacing="0" cellpadding="0" style="margin: 15px 0 10px;">
                        <tr>
                            <td width="12%">
                                <table width="113" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="background: url(images/box1_top_R.gif) no-repeat right;">
                                            <img src="images/IndexShowTest/box1_top_L.gif" width="6" height="6" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" style="border-left: 1px solid #E4E7E0; border-right: 1px solid #E4E7E0;
                                            background: #fff;">
                                            <asp:Image width="101px" height="77px" ID="Image1" runat="server" ToolTip='<%# Eval("urlpath") %>' ImageUrl= '<%# "~/upfile/bbs/"+ Eval("urlpath") %>'/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="background: url(images/box1_down_R.gif) no-repeat right;">
                                            <img src="images/IndexShowTest/box1_down_L.gif" width="6" height="6" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="80%" valign="top" style="line-height: 16px; margin:20px 0 10px">
                                <span class="images/IndexShowTest/yiyuantitle gold"><a href="#">
                                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("MName") %>'></asp:Label></a></span>
                                <asp:Label
                                    ID="Label1" runat="server" Text='<%# Eval("Remork") %>'></asp:Label><br />
                                <span style="margin-top: 8px; display: block;"><a href="#">
                                    <img src="images/IndexShowTest/view_show.gif" border="0" /></a>&nbsp;&nbsp;<a href="#"><img src="images/IndexShowTest/view_zhuanjia.gif"
                                        width="82" height="17" border="0" /></a></span>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="height: 15px; background: url(images/IndexShowTest/heng_jg.gif) repeat-x left bottom;">
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList></td>
          </tr>
        </table></td>
      </tr>
    </table>
    <div>    
            
        </div>
        </form>
    </body>
    </html>
      

  2.   

    哪里有DataList ?
    你进行数据绑定了吗?设置DataList 的模板了吗
      

  3.   

    DataList在1楼,中间的部分
    DataList我绑定了啊,也设置DataList模板了。