PDA

View Full Version : [CLOSED] How to render Ext button's text from Resx file?



alscg
May 15, 2013, 6:10 AM
I have following code in my view page(aspx view engine)


<ext:LinkButton ID="btnClone" runat="server" Text='<%# Resource.Administration.RolesAndPermissions.Clone %>' Cls="clone button">
</ext:LinkButton>


Text is being rendered as "undefined".
I have also tried following ways



1. <%: Resource.Administration.RolesAndPermissions.Clone %>
2. <%= Resource.Administration.RolesAndPermissions.Clone %>


Please help in this regard

Daniil
May 15, 2013, 6:36 AM
Hi @alscg,

Please use "<%#" and set

AutoDataBind="true"
for the LinkButton.

alscg
May 20, 2013, 1:01 PM
Hi @alscg,

Please use "<%#" and set

AutoDataBind="true"
for the LinkButton.

Working fine....Thank you.