Is possible to set in resources that any menu elements will not visible in one of languages?
Best regards,
Dagna
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume that you already know how to use local resources. If not, check this: ASP.NET Web Page Resources
If you use local resources (App_LocalResources), you can refer to pretty much any property of any control in the page linked to the local resources.
So in the page linked to the local resources, if you have a server-side menu element (with the runat=”server” tag) and with the id “menuElement”, you could set this in your resources file.
“Name” | “Value”
menuElement.Visible | False
For example, you could set the value to False in your French resources file and the value to True in English resources file. The control menuElement would be visible only in English.