我做了一个网页,为什么我运行时显示的是空白,把编码选为自动后,再运行,还是显示的是空白,请指点

解决方案 »

  1.   

    这个可能是HTML代码的问题,也可能是传递的参数的问题,把代码贴出来才知道
      

  2.   

    这个是Login页面
    <%@ Page Language="C#" MasterPageFile="~/QianTai/QianTai.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="QianTai_Login" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <div style="width:633; height:639px">
        <table style="width:639px; height:659px">
          <tr>
            <td colspan="3" style="background-image:url(image/xw.gif); background-repeat:no-repeat; width:556px; height:30px;">
            </td>
          </tr>
          <tr>
             <td colspan="3" style="vertical-align:top; text-align:center;">
               <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" CellPadding="4"
               DataSourceID="ObjectDataSource1" ForeColor="#333333" GridLines="None" 
                     Width="568px" AllowPaging="True" OnRowDataBound="GridView1_RowDataBound" 
                     OnRowCommand="GridView1_RowCommand">
               <FooterStyle BackColor="#990000" ForeColor="White" Font-Bold="true" />
               <RowStyle BackColor="#fffbd6" ForeColor="#333333" />
               <Columns>
                 <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" Visible="false" />
                 <asp:BoundField DataField="Title" HeaderText="新闻标题" SortExpression="Title" />
                 <asp:BoundField DataField="Contents" HeaderText="Contents" SortExpression="Contents" Visible="false" />
                 <asp:BoundField DataField="PubDate" HeaderText="发布时间" SortExpression="PubDate" DataFormatString="{0:yyyy年M月D日}" />
                 <asp:BoundField DataField="N_Type" HeaderText="N_Type" SortExpression="N_Type" Visible="False" />
                 <asp:BoundField DataField="Popular" HeaderText="人气指数" SortExpression="Popular" />
                 <asp:BoundField DataField="State" HeaderText="State" SortExpression="State" Visible="False" />
                 <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="xw.aspx?id={0}" HeaderText="详细信息" Text="详细信息" />
               </Columns>
               <PagerStyle ForeColor="#333333" HorizontalAlign="Center" BackColor="#ffcc66" />
               <SelectedRowStyle BackColor="#ffcc66" Font-Bold="True" ForeColor="Navy" />
               <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
               <AlternatingRowStyle BackColor="White" />
               </asp:GridView>
               <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetAllNews"
               TypeName="wyManagerBLL.NewManager"></asp:ObjectDataSource>
             </td>
          </tr>
    </table>
      </div>
    </asp:Content>
    这个是母版页
    <%@ Master Language="C#" AutoEventWireup="true" CodeFile="QianTai.master.cs" Inherits="QianTai" %><!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 runat="server">
    <link rel="stylesheet" href="css/css.css" type="text/css" />
        <title>某广告业务管理系统</title>
        <style type="text/css">
        
      

  3.   

    .title
        {
         border-style: none;
            border-color: inherit;
            border-width: 0;
          width:820px;
              height:34px;
              z-index:1;
          left:275px;
          top:16px;
          }
       .denglu
       {
            position:absolute;
        width:245px;
        height:731px;
        z-index:1;
        left: 10px;
        top: 212px;
        }
        .editor 
        {
            position:absolute;
        width:693px;
        height:522px;
        z-index:2;
        left: 245px;
        top: 198px;
        }
       
        .borderBox {
        border:2px solid;
    }
        .style3
        {
            height: 25px;
        }
        .style6
        {
         width:232px;
            height:35px;
        }
        .style7
        {
         width:232px;
         height:190px;
        }
        .gundoong
        {
        position:absolute;
        font-size:15px;
        font-family:"新宋体";
        color:#CC6633;
        text-decoration:none;
        font-weight:bold;
        top:190px;
        z-index:1;
        }
        </style>
    <script language="javascript" type="text/javascript">
    // <!CDATA[function IMG1_onclick() {}// ]]>
    </script>
    </head>
    <body>
         <form id="form1" runat="server">
         <div class="title" style="height:1px">
          <table border="0" cellpadding="0px" cellspacing="0px">
           <tr>
            <td align="left" style="background-image:url(image/daohang_01.jpg); background-repeat:no-repeat;width:58px;height:34px;" ></td>
            <td style="width:49px; height:34px;">
             <asp:ImageButton ID="ibtnShouye" runat="server" ImageUrl="image/daohang_02.jpg" PostBackUrl="~/QianTai/Login.aspx"
              CausesValidation="False" OnClick="ibtnShouye_Click" /></td>
            <td style="width:126px; height: 34px;">
             <asp:ImageButton ID="ibtnDingdanSQ" runat="server" ImageUrl="image/Button1.png" CausesValidation="False" OnClick="ibtnDingdanSQ_Click" />
            </td>
            <td style="width:92px;height:34px;">
             <asp:ImageButton ID="ibtnMyShou" runat="server" ImageUrl="image/Button2.png" CausesValidation="false" OnClick="ibtnMyShou_Click" />
            </td>
            <td style="width:93px; height:34px">
             <asp:ImageButton ID="ibtnLiuYan" runat="server" ImageUrl="image/留言板.png" CausesValidation="false" OnClick="ibtnLiuYan_Click" />
            </td>
            <td style="width:83px; height:34px">
             <asp:ImageButton ID="ibtnJiaoLiu" runat="server" ImageUrl="image/在线交流.png" CausesValidation="false" OnClick="ibtnJiaoLiu_Click" />
             </td>
            <td style="width:82px;height:34px;">
             <asp:ImageButton ID="ibtnTuiChu" runat="server" ImageUrl="image/Button3.png" CausesValidation="false" OnClick="ibtnTuiChu_Click" />
            </td>
            <td align="right" style="background-image:url(image/image1.png);background-repeat:no-repeat;width:213px;border:0px;height:34px;"></td>
           </tr>
          </table>
         </div>
         <img src="image/复件 3.png" height="142px" alt="" style="width: 785px" />
          <div onmousemove="marqueeing = false;" onmouseout="marqueeing = true;" class="gundoong" style="background-image:url(image/beijinghtml_01.jpg);border:double; border-color:#cccccc;position:absolute; width: 795px; left: 0px; top: 190px;">
            &nbsp;<a>爱广告,爱生活!!</a> 
          </div>
          <div class="denglu" style="left: 7px; top: 215px; height: 508px; position:absolute" >
           <table border="0px" style="height: 133px; width: 236px" cellpadding="0px" cellspacing="0px">
            <tr>
             <td style="background-image:url(image/dengl_01.jpg);background-repeat:no-repeat;width:232px;height:37px;"></td>
            </tr>
            <tr align="center">
             <td style="background-image:url(image/dengl_02.jpg);background-repeat:repeat-y;width:232px;height:100px;">
              <table border="5" style="width:205px;height:75px" cellpadding="0px" cellspacing="0px">
               <tr>
                <td align="right" class="style3" style="height:25px">
                 <img src="image/login_04.jpg" alt="" style="height: 20px; width: 49px"/>
                </td>
                <td class="style3" style="width:141px;height:25px">
                 <asp:TextBox ID="txtLoginName" runat="server" BorderColor="#6699ff" CssClass="borderBox" Width="120px" Height="19px"></asp:TextBox>&nbsp;
                </td>
               </tr>
               <tr>
                <td align="right" class="style3">
                 <img src="image/login_06.jpg" alt="" style="width:50px;height:20px"/>
                </td>
                <td style="width:141px">
                    <asp:TextBox ID="txtLoginPwd" runat="server" TextMode="Password" BorderColor="#6699ff" CssClass="borderBox" Width="119px" Height="18px"></asp:TextBox>&nbsp;
                </td>    
               </tr>
               <tr align="center">
                <td colspan="2" style="height:26px">
                 <asp:ImageButton ID="ibtnLogin" runat="server" ImageUrl="image/dl.gif" Width="60px" Height="21px" OnClick="ibtnLogin_Click" />
                 <asp:ImageButton ID="ibtnXiuGai" runat="server" ImageUrl="image/zc.gif" Width="56px" Height="21px" CausesValidation="false" OnClick="ibtnXiuGai_Click" />
                 
                </td>
               </tr>
              </table>
             </td>
            </tr>
            <tr>
             <td style="background-image:url(image/dengl_03.jpg);background-repeat:no-repeat;width:232px;height:10px;">
             </td>
            </tr>
          </table>
                <asp:Label ID="lblSow" runat="server" ForeColor="Red" Width="181px"></asp:Label><br />
                <br />
                <br />
          <table border="0" cellpadding="0px" cellspacing="0px" style="width:232px">
           <tr>
            <td style="background-image:url(image/gg1.gif); background-repeat:no-repeat; width:232px; height:35px">
            </td>
           </tr>
           <tr>
            <td style="background-image:url(image/gg2.gif); background-repeat:no-repeat; width:232px; height:155px">
             <div style="width:229px; height:136px">
              <asp:Label ID="lblContent" runat="server" Width="226px" Height="111px"></asp:Label><br />
              <asp:Label ID="lblTime" runat="server" Width="208px"></asp:Label>
             </div>
            </td>
           </tr>
          </table>
          <br />
              <table border="0" style="width:238px" cellpadding="0px" cellspacing="0px">
               <tr>
                <td class="style6" style="background-image:url(image/rili_01.jpg); background-repeat:no-repeat">
                </td>
               </tr>
               <tr>
                <td class="style7" style="background-image:url(image/rili_02.jpg); background-repeat:no-repeat">
                 &nbsp;&nbsp;<asp:Calendar ID="Calendar1" runat="server" BackColor="#ffffcc" BorderColor="#ffcc66"
                 BorderWidth="1px" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
                 ForeColor="#663399" Height="200px" ShowGridLines="true" Width="220px">
                 <SelectedDayStyle BackColor="#ccccff" Font-Bold="true" />
                 <SelectorStyle BackColor="#ffcc66" />
                 <TodayDayStyle BackColor="#ffcc66" ForeColor="White" />
                 <OtherMonthDayStyle ForeColor="#cc9966" />
                 <NextPrevStyle Font-Size="9pt" ForeColor="#ffffcc" />
                 <DayHeaderStyle BackColor="#ffcc66" Font-Bold="true" Height="1px" />
                 <TitleStyle BackColor="#990000" Font-Bold="true" Font-Size="9pt" ForeColor="#ffffcc" />
                 </asp:Calendar>
                </td>
               </tr>
               <tr>
                <td style="height:13px"><img src="image/rili_03.jpg" width="232px" height="13px" alt="" />
                </td>
               </tr>
              </table>
          <p style="width:239px; height:90px"><img src="image/quai.gif" height="85px" style="width:235px" alt="" id="IMG1" onclick="return IMG1_onclick()" />
          </p>
         </div>
         <div class="editor" style="position:absolute; left:238px; top:215px;">
          <table border="0" width="680px" cellpadding="0px" cellspacing="0px">
           <tr>
            <td style="background-image:url(image/guanlidi_01.jpg); background-repeat:no-repeat; width:672px; height:31px"></td>
           </tr>
           <tr align="center">
            <td style="background-image:url(image/guanlidi_02.jpg); background-repeat:repeat-y; width:672px; height:402px">
              <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
                <br />
                <br />
                <br />
                <br />
                <br />
              </asp:ContentPlaceHolder>
            </td>
           </tr>
           <tr>
            <td style="background-image:url(image/guanlidi_03.jpg); background-repeat:no-repeat; width:672px; height:38px"></td>
           </tr>
          </table>
         </div>
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
          <br />
             <br />
             <br />
             <br />
             <br />
             <br />
             <br />
             <br />
         <center>
           <img src="image/信息1.png" width="883" height="47" alt="" />
           <img src="image/信息2.png" width="803" height="85" alt="" />
         </center>
        </form>
        <p>
         &nbsp;</p>
    </body>
    </html>
    运行后页面是空白,也不报错,我新建了一个网站,运行单独的页面,结果还是一样,我让人改了下,但是图片显示不出来,不知道是咋回事
      

  4.   

    把你网站文件夹里的那个HTML格式的文件删掉就可以了。
      

  5.   

    就是这个文件,删掉就OK了app_offline.htm