开发者

GridView HeaderText is empty in some cases

开发者 https://www.devze.com 2023-01-17 07:17 出处:网络
It returns an empty string! <asp:TemplateField HeaderText=\'<%= \"2323\" %>\'> How to solve it? Originally i want to in开发者_Go百科voke a page method.Using HeaderTemplate solved my pro

It returns an empty string!

<asp:TemplateField HeaderText='<%= "2323" %>'>

How to solve it? Originally i want to in开发者_Go百科voke a page method.


Using HeaderTemplate solved my problem, but it doesn't explain why. :/


Try this?

<asp:TemplateField HeaderText="2323">

UPDATE:

Remove the HeaderTemplate tags and try doing it programmatically:

http://bytes.com/topic/asp-net/answers/615373-setting-text-headertemplate-how

0

精彩评论

暂无评论...
验证码 换一张
取 消