本帖最后由 zhfeng2003400 于 2013-07-22 09:27:51 编辑

解决方案 »

  1.   

    谢谢,现在才发现无刷新的时候也绑定不正确,但是页面可以把所有数据显示出来,查看网页的源代码,发现到到<tr style="height:20px;">
    <td>1</td><td>美国卫星
    就没了……
     <asp:GridView ID="GridView1" runat="server"  SkinID="GridView1" onrowdatabound="GridView1_RowDataBound" 
                            >
                            <RowStyle Height="20px" />
                            <Columns>
                                <asp:BoundField DataField="ID" HeaderText="编号" >
                                    <HeaderStyle  Width="20px"/>
                                </asp:BoundField>
                                <%--<asp:TemplateField HeaderText="节目名称">
                                     <ItemTemplate>
                                         <%# GetProgramName(Eval("节目名称").ToString())%>
                                     </ItemTemplate>
                                     <ItemStyle Width="60px" />
                                </asp:TemplateField>--%>
                                <asp:BoundField DataField="节目名称" HeaderText="节目名称" >
                                    <HeaderStyle  Width="60px"/>
                                </asp:BoundField>
                                <asp:BoundField DataField="频率" HeaderText="频率" DataFormatString="{0:f2}" >
                                    <HeaderStyle  Width="50px"/>
                                </asp:BoundField>                                  <%-- 省略……--%>
                                                       </Columns>
                            <EmptyDataTemplate>                        </EmptyDataTemplate>
                            <HeaderStyle Height="20px" />
                            <AlternatingRowStyle BackColor="#E1ECEE" />
                        </asp:GridView>
      

  2.   

    估计是这个出错了GetProgramName
      

  3.   

    应该还是字符串编码的问题吧,怎么解决呢,既然数据库能解析出来,为什么.net程序翻译成客户端html时会有错误呢~~?