我试图将资源键添加到网格视图的标题文本,但经过很长时间后,我无法管理此问题。使用资源键的绑定字段中的标题文本
我已经试过编码,如:
<asp:BoundField DataField="CategoryName" HeaderText="<%$ Resources:ViewTC_CourseCategory,HeaderCategoryName %>"
ItemStyle-Width="12">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
我的资源文件中包含如下值:
HeaderCategoryName.Text Category Name
它显示了以下错误:The resource object with key 'HeaderCategoryName' was not found
什么是实现这个正确的方法需求。一定帮助。
你能告诉你的资源文件和GridView所在页面的名称是什么? –
资源文件名称:ViewTC_CourseCategory.ascx.resx页面名称:ViewTC_CourseCategory.aspx – Abhishek
我试着实现这个:” ItemStyle-Width =“12”> asp:BoundField> –
Abhishek