473,399 Members | 2,278 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,399 software developers and data experts.

ASP.NET 2.0 resource trouble

Hi all,

I have a website which I want to make multi-language capable. For
this, I need to create a local resource for each .aspx page (here:
Default.aspx). In the folder containing the page, I create the
App_LocalResources folder in which I created the Default.aspx.resx-
file for the aspx file. Loading and localizing resources works fine
for text resources, but it doesn't for images.

In Page_Load() of Default.aspx:
Image1.ImageUrl = Page.ClientScript.GetWebResourceUrl(this.GetType() ,
"image1");

I tried Image1.GetType() or typeof(Bitmap) instead of this.getType()
and I tried "Default.aspx.resx.image1(.gif)" for "image1". It does not
work. The image is not displayed. However, text loaded from the same
resource file IS displayed.

Is it actually possible using image resources from an
App_LocalResources folder? Or do I have do create an extra WebResource
project like it is described in http://www.codeproject.com/aspnet/MyWebResourceProj.asp
?

Cheers, Hannes

Mar 29 '07 #1
0 907

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

Similar topics

15
by: runonthespot | last post by:
Hi all, Don't know how many out there actually use HTA's, but I do, and am looking at protecting javascript code associated with one I look after. This HTA runs of a network drive, not a...
5
by: John Perks and Sarah Mount | last post by:
When handling resources in Python, where the scope of the resource is known, there seem to be two schools of thought: (1) Explicit: f = open(fname) try: # ... finally: f.close()
4
by: | last post by:
When do they plan on making this essential utility USEFUL? In its current form its pointless. How could they let this out? Its useless.
10
by: Niall | last post by:
I'm not quite sure which groups to post this to, so short of a massive crosspost, I decided on these two. I am running into troubles with resource usage of our app on Win2k and above systems. In...
0
by: Johann Blake | last post by:
I'm having trouble grasping how ASP.NET correctly locates resources. There is plenty of documentation on this subject but some things are not clear at all. In my ASP.NET application, I have...
3
by: Kelmen Wong | last post by:
I'm having a real hard-time to work out the hell of the statelite assembly. 1) At start, the official MSDN stated to use: .... new ResourceManager(strBaseName,...
3
by: Jules | last post by:
i'm working with translators that just want to translate "web pages" and not deal with resource files. i'd like to have a file structure that looks sort of like this: / <- root directory where...
2
by: Screaming Eagles 101 | last post by:
Hi, we used to have a resource file in VB6 and use this as a provider according to the language a user chose (English, Dutch, Spanish,....), his interface thus. In this resource file we had al...
8
by: raylopez99 | last post by:
I have the latest version of Visual Studio 2008 Professional, which allows you to create resource files (this is the .resx file, no?), unlike the Express version, which does not. I am trying to...
2
by: Nathan Sokalski | last post by:
I have a resource file (*.resx) with several images in it. I am having trouble finding a way to use these images for controls such as Image, ImageButton, and other controls that an image can be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.