2013-08-07 36 views
1

我有下面的代码的GridView:GridView的错误:绑定一个电话的格式不正确

<asp:TemplateField HeaderText="N/A"> 
<ItemTemplate> 
<asp:Label ID="lblENGNA" runat="server" Text='<%# Bind("N/A") %>'> 
</asp:Label> 
</ItemTemplate> 
</asp:TemplateField> 

当我运行上面的部分,这个公司给我的错误:

分析器错误信息:对Bind的调用格式不正确。请参阅关于绑定的正确参数的文档,请参阅 。

误差图像:

enter image description here

注:我的查询(其结合网格)包含字段N/A

回答

0

我添加以结合[N/A]和它的工作。

其如下:

<asp:Label ID="lblENGNA" runat="server" Text='<%# Bind("[N/A]") %>'> 
相关问题