i have an asp.net webpage, which contains a label, now i want to get the text property of the label from the localresource file, i have a .resx
file under App_LocalResources
folder, which contains Name as UserNameLabel.Text
and Value as User Name
now in my aspx
file i am using Label
control like this
<asp:Label ID="UserNameLabel" runat="server" resourcekey="UserNameLabel"></asp:Label>
but i cannot get the text on the Label, can anyone tell me the correct way to add the Text Property from resource file