Tôi thêm một nút trong tiêu đề của xem lưới nhưng Visual Studio nổi bật này ASN một lỗi:Tên 'EVAL' không tồn tại trong bối cảnh hiện nay
'The name EVAL does not exist in the current context'.
Tại sao điều này xảy ra, và làm thế nào nó có thể được giải quyết không?
<asp:gridview runat="server" >
<Columns>
.....
<asp:TemplateField>
<ItemTemplate>
<asp:Literal runat="server" ID="litFamily" Text='<%# EVAL("CompanyAddress") %>'></asp:Literal>
</ItemTemplate>
</asp:TemplateField>
.....
Sử dụng như Text = '<% # Eval ("CompanyAddress")%>' – hkutluay