What is wrong here when I add meta:resourcekey to LinkButton.

Posted by Vinay Pandey on Stack Overflow See other posts from Stack Overflow or by Vinay Pandey
Published on 2010-05-10T12:04:24Z Indexed on 2010/05/10 12:14 UTC
Read the original article Hit count: 215

Filed under:
|
|

For the code below:-

<asp:LinkButton ID="lbtnTest" runat="server" CssClass="toolbar" CommandArgument="Test"
    meta:resourcekey="lbtnTest1" OnCommand="ChangeText">
    <asp:Literal  ID="litTest" Text="My Text" runat="server" meta:resourcekey="litTest" />
</asp:LinkButton>

When I remove meta:resourcekey="lbtnTest1" from the link button then litTest is rendered properly whereas if I have meta:resourcekey="lbtnTest1" in link button it doesn't display text for litTest.

Any idea what I am doing wrong here?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#