http://www.yyparts.com/PublicPortal/ProductListForFitting.aspx?Fitting=677b6b9b-e071-4129-8499-ecf8d769f38e
 这是网址!(我不是骗点击) 下面分页控件,到第二页页面显示不正常,变形。。      在本地运行很正常,到服务器就出错。。可能什么原因?   显示控件用DATALIST 还需要知道什么,请留言 谢谢大家。

解决方案 »

  1.   

    可能是CSS文件没有找到,或者没有加载,我打开第二页一直在waiting for应该是有东西没有加载。
      

  2.   

     <table class="miaobian" width="100%">
                    <tr>
                        <td>
                            <div class="cplbcpbt" style="background-color: #EBFCEC;">
                                <%--  <a target="_blank" href='ProductDetails.aspx?ProductID=<%#Eval("ProductID")%>' target="_blank">
                                    <%#Eval("ProductChName")%></a>--%>
                                <asp:Label ID="lblProductName" runat="server" Text='<%#Eval("ProductChName")%>'></asp:Label>
                            </div>
                            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                <tr style="vertical-align: top;">
                                    <td style="padding-left: 10px;" width="110px">
                                        <a target="_blank" href='ProductDetails.aspx?ProductID=<%#Eval("ProductID")%>' target="_blank">
                                            <asp:Image ID="imgProduct" ImageUrl='<%# Eval("BigPicUrl")==null || Eval("BigPicUrl").ToString()==""? "~/Themes/images/Default.jpg": "~/PublicPortal/Upload/ProductImages/"+Eval("BigPicUrl") %>'
                                                Width="134px" Height="100px" runat="server" /></a>
                                    </td>
                                    <td width="350px">
                                        <table cellpadding="0" cellspacing="0" border="0" class="tablelay">
                                            <tr>
                                                <th>
                                                    零件号码:
                                                </th>
                                                <td>
                                                    <asp:Label ID="lblProductCode" runat="server"><%#Eval("ProductCode")%></asp:Label>
                                                </td>
                                                <th>
                                                    羊羊编码:
                                                </th>
                                                <td>
                                                    <asp:Label ID="lblCode" runat="server"><%#bool.Parse(Eval("IsBase").ToString()) ?"": Eval("Code")%></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>
                                                    市场价格:
                                                </th>
                                                <td style="text-decoration: line-through;">
                                                    <%# Eval("MarketPrice")%>
                                                </td>
                                                <th>
                                                    羊羊价格:
                                                </th>
                                                <td style="color: Red; width: 100px;">
                                                    <%# Eval("SalePrice")%>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>
                                                    产品品牌:
                                                </th>
                                                <td>
                                                    <%#GetBrand(Eval("BrandID"))%>
                                                </td>
                                                <th>
                                                    <%-- 产品品质:--%>
                                                </th>
                                                <td>
                                                    <uc1:XingXingControl ID="xxProductCharacter" runat="server" AllNumber="5" BadImgUrl="/JS/vote/passive_star.gif"
                                                        GoodImgUrl="/JS/vote/active_star.gif" GoodNumber="3" Visible="false" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <th style="vertical-align: top;">
                                                    技术描述:
                                                </th>
                                                <td style="vertical-align: top; width: 100px;">
                                                    <%# Eval("Parameter")%>
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td style="width: 200px;">
                                        <div style="overflow: hidden; width: 200px;">
                                            <table cellpadding="0" cellspacing="0" border="0">
                                                <tr>
                                                    <td>
                                                        <p>
                                                            适用车型:</p>
                                                        <asp:TreeView ID="tvRelateCar" runat="server" ShowLines="true">
                                                            <SelectedNodeStyle Font-Bold="True" ForeColor="Red" />
                                                        </asp:TreeView>
                                                    </td>
                                                </tr>
                                                <tr id="trEngine" runat="server" visible="false">
                                                    <td style="vertical-align: top;">
                                                        <p>
                                                            适用发动机:</p>
                                                        <asp:TreeView ID="tvRelateEngine" runat="server" ShowLines="true">
                                                            <SelectedNodeStyle Font-Bold="True" ForeColor="Red" />
                                                        </asp:TreeView>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3" style="height: 10px">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="background-color: #E7FAFF; height: 30px; line-height: 30px;
                                        vertical-align: middle; color: blod; font-size: 9pt; font-weight: bold;">
                                    </td>
                                    <td style="background-color: #E7FAFF; height: 30px; line-height: 30px; vertical-align: middle;
                                        text-align: right;">
                                        <div>
                                            <%--   <a href='ProductDetails.aspx?ProductID=<%#  Eval("ProductID")%>' 'target="_blank"'>
                                                <asp:Image ID="Image1" runat="server" ImageUrl="~/Themes/images/btn_ckxxxx.jpg" />
                                            </a>--%>
                                            <asp:HyperLink ID="hplHide" runat="server" Target="_blank" ImageUrl="~/Themes/images/btn_ckxxxx.jpg">
                                            
                                            </asp:HyperLink>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                            </div>
                        </td>
                    </tr>
                </table>
                <table width="100%">
                    <tr>
                        <td style="background-color: White; height: 10px">
                        </td>
                    </tr>
                </table>            前台输出代码       
      

  3.   

    ASP.NET会执行postback,首次加载成功并不代表你的css样式成功被加载了,要看postback之后。
    还有你这网站的代码是不是存在点问题,我点击第二页,页面先是样式变了,但网页一直处于加载中。加载完了之后是,找不到服务器。
      

  4.   

    查找源代码发现HTML不完整了,应该是拼接的时候或者输出的时候有问题:
      </td>
                          et="_blank">
    这段链接的东西都没有了
     <tr>
                                    <td colspan="3" style="height: 10px">
                                    </td>
                          et="_blank">
                                            <img id="ctl00_ContentPlaceHolder1_ProductListMaster1_dlProduct_ctl01_imgProduct" src="../Themes/images/Default.jpg" style="height:100px;width:134px;border-width:0px;" /></a>
                                    </td>
                                    <td width="350px">
                                        <table cellpadding="0" cellspacing="0" border="0" class="tablelay">
                                            <tr>
                                                <th>
                                                    零件号码:
                                                </th>
                                                <td>
                                                    <span id="ctl00_ContentPlaceHolder1_ProductListMaster1_dlProduct_ctl01_lblProductCode"></span>
                                                </td>
                                                <th>
                                                    羊羊编码:
                                                </th>
                                                <td>
                                                    <span id="ctl00_ContentPlaceHolder1_ProductListMaster1_dlProduct_ctl01_lblCode"></span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>
                                                    市场价格:
                                                </th>
                                                <td style="text-decoration: line-through;">
                                                    
                                                </td>
                                                <th>
                                                    羊羊价格:
                                                </th>
                                                <td style="color: Red; width: 100px;">
                                                    
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>
                                                    产品品牌:
                                                </th>
                                                <td>
                                                    
                                                </td>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                    
                                                </td>
                                            </tr>
                                            <tr>
                                                <th style="vertical-align: top;">
                                                    技术描述:
                                                </th>
                                                <td style="vertical-align: top; width: 100px;">
                                                    环保
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
      

  5.   

    是不是没装 asp.net ajax    .net版本影响的
      

  6.   


    你要检查为何这段丢失的html,第一页没有问题,可能是数据的问题。
      

  7.   

    查看下html 看有没有缺少或丢失标记