UpdatePanel 更新 gridview 出现 Sys.WebForms.PageRequestManagerParserErrorException
--------------------编程问答-------------------- 看你报的错误中 应该是用无刷新时,你绑定的某个字段没有回传,或者是拼错代码了能把你前台绑定的代码贴出来吗? --------------------编程问答-------------------- 谢谢,现在才发现无刷新的时候也绑定不正确,但是页面可以把所有数据显示出来,查看网页的源代码,发现到到
<tr style="height:20px;">
<td>1</td><td>美国卫星
就没了……
<asp:GridView ID="GridView1" runat="server" SkinID="GridView1" onrowdatabound="GridView1_RowDataBound"--------------------编程问答-------------------- 估计是这个出错了GetProgramName --------------------编程问答-------------------- 那个,我注释了的…… --------------------编程问答-------------------- 应该还是字符串编码的问题吧,怎么解决呢,既然数据库能解析出来,为什么.net程序翻译成客户端html时会有错误呢~~?
>
<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>
补充:.NET技术 , ASP.NET