How not to type control ID again in meta:resourcekey?

Posted on 2011-04-28
Medium Priority
Last Modified: 2012-05-11

I've got a page which I need to localize to different langauges. So I used resource files and ended with a lot of controls looking like below. Most of the time, the meta:resourcekey is simply equal to control ID. Typing it twice is getting really annoying. Any way to get rid of this need while still using resource files (changing res files to some other concept would take weeks of work).

<asp:HyperLink ID="linkImportZipFile" NavigateUrl="#extractZIP" onclick="extractOpt(impMethZip);" Text="Import models from ZIP file" runat="server" meta:resourcekey="linkImportZipFile" />

Open in new window

Question by:bovlk
1 Comment
LVL 21

Accepted Solution

Alfred A. earned 2000 total points
ID: 35496363
In my opinion, you would really have to manually enter the name of the meta:resourcekey if you are naming it the same as the control ID.

I usually use the Generate Local Resource option under the Tools Menu to generate a new page resource file or refresh the page resource file key values when a page is modified.  Unfortunately, the Generate Local Resource option has a standard naming of "Control ID" name plus concatenated string "Resource1" (eg. Button1 ID name for button control would have Button1Resource1 for its meta:resourcekey).


Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month14 days, 3 hours left to enroll

807 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