Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

localization with hyperlink

Posted on 2006-11-08
1
Medium Priority
?
274 Views
Last Modified: 2012-05-05
Hello,

I try the localization facilities from asp.net 2.0.
I have a folder named app_localresources with somes resources files.

How can I use this to translate my hyperlink ?

thank
0
Comment
Question by:PHD
1 Comment
 
LVL 11

Accepted Solution

by:
ethoths earned 2000 total points
ID: 17896722
Give this a go...
http://msdn2.microsoft.com/en-us/library/fw69ke6f(VS.80).aspx

Basically tou have a set of files in thsi foldr that are identified by the locale string..


in each of these folders you have...

<asp:Hyperlink ID="Hyperlink1" Runat="server" meta:resourcekey="HyperlinkResource1" Text="English Hyperlink" />

Then in your aspcx page...

<asp:Hyperlink ID="Hyperlink1" Runat="server" Text="<%$ Resources:LocalizedText, HyperlinkResource1 %>" />
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question