A
Anson Goldade
I think I may have run into an issue with the asp.net lable control. Take
the following code
<asp:label runat="server" id="txtTextLabel"
associatedcontrolid="txtText" meta:resourcekey="txtTextLabel">
<asp:textbox runat="server" id="txtText"></asp:textbox>
</asp:label>
Create the app local resource file with a single entry (e.g. Name:
"txtTextLabel.Text" Value: "Testing resource").
Now run the page. You should get the following error "Unable to find
control with id 'txtText' that is associated with the Label 'txtTextLabel'."
Now remove the meta:resourcekey="txtTextLabel" attribute from the asp:label
control and it works fine. Is there a reason why controls can't be nested
when using localized resources with labels? Thanks for your assistance in
advance.
the following code
<asp:label runat="server" id="txtTextLabel"
associatedcontrolid="txtText" meta:resourcekey="txtTextLabel">
<asp:textbox runat="server" id="txtText"></asp:textbox>
</asp:label>
Create the app local resource file with a single entry (e.g. Name:
"txtTextLabel.Text" Value: "Testing resource").
Now run the page. You should get the following error "Unable to find
control with id 'txtText' that is associated with the Label 'txtTextLabel'."
Now remove the meta:resourcekey="txtTextLabel" attribute from the asp:label
control and it works fine. Is there a reason why controls can't be nested
when using localized resources with labels? Thanks for your assistance in
advance.