Andres A.
Andres A.

Reputation: 1349

why setting the HeaderText programatically won't work?

Do any of you know why this won't work?

<asp:BoundField HeaderText='<%=Lang.GetString("ManCan_Descripcion")%>' DataField="OcdObs" />

It's like the server is ignoring the <%%> tags, the page gets rendered like this:

<th scope="col"><%=Lang.GetString("ManCan_Descripcion")%></th>

Upvotes: 0

Views: 405

Answers (1)

kprobst
kprobst

Reputation: 16651

runat="server" missing for the control?

Edit: Wait, aren't you supposed to use the <%# delimiter syntax instead?

I've never used that kind of binding so I'm not 100% sure here.

Upvotes: 1

Related Questions