开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜