GridView HeaderText is empty in some cases
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
精彩评论