473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Referencing a resx from an aspx?


Dear Group

Just wonder if someone can point me in the right direction please?
I have a label control and want to assign a string in a resource. I'm
sure I'm on the right track but it doesn't work. The resource and
string is in place.

<asp:Label ID="LaSysNavFooter" runat="server" Text='<%#
Resources.framework.global.aspx.LaSysNavFooter%>'> </asp:Label>

Thanks very much for your help & efforts!

Martin

Mar 26 '06 #1
1 1379
The way we did was

1. In the ASPx page this is how the code looks
<asp:Literal runat="server" ID="Literal2" Text="<%$
Resources:SeeAllFeaturedFeeds %>"></asp:Literal>
2. In ".cs" file, having "using System.Globalization;"
3. Create a folder "App_LocalResources" (I guess name really matters)
4. Have files name like "Default.aspx.resx",
"Default.aspx.de-DE.resx"..... The file name should match your ASPx
file name
I'm pretty sure, you can keep all resources in single file rather
than having one RESx for each ASPx file (I dont know HOW though)

Hope that helps.

Mar 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hans Kesting | last post by:
Hi, When I add a webform, VS generates three files: WebForm1.aspx WebForm1.aspx.cs (could also be "WebForm1.aspx.vb" I guess) WebForm1.aspx.resx What is that last file for? How can I use...
0
by: David Krussow | last post by:
I had an aspx page (mypage.aspx) with a code behind file (mypage.aspx.cs) that in turn had a resx file (mypage.aspx.resx). I decided to create another aspx page (myotherpage.aspx) that would reuse...
3
by: Servé La | last post by:
We have an aspnet project where 2 people are working on and we have put the source files into subversion. Thinking that they were not crucial for a project, we did not put in the resx files. But...
1
by: John M | last post by:
Hello, In an *.sln solution, I have added a project (VB .NET), and under the project, I have added some files. I did : right click + add existing file (I had the existing files : main.aspx,...
3
by: neilmcguigan | last post by:
is there a way to get visual studio (2k3) to put and keep resx files in a folder? i create yada.aspx yada.aspx.resx is created i move yada.aspx.resx to folder deda next time i start VS, there...
2
by: WT | last post by:
Hello, Could we use 'Embedded resources' with resx files that contain text resources used in aspx pages with the syntaxe: Text="<%$ Resources:ResourcesMy,KEY1 %>" I tryed removing the...
1
by: pc3957 | last post by:
Hi everyone, I've got a bit of a strange problem and I can't figure out how to fix it. I've got an ASP.net 2.0 site with a homepage in /Default.aspx and a members homepage in...
7
by: nws_reader | last post by:
I have a web service that needs to return a particular string for one of its web methods. I would like to manage the strings in a resource file. I went through a lot of the help provided on the...
1
by: jbj07 | last post by:
What I have is an application which already been localized and has spanish resx (aspx.es.resx) files. What I am having a problem with is I have gone in and added new controls to some of these pages...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.