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

RESOURCE FILE PROBLEM

I created App_GlobalResources directory and I put my Resource file which is
named
WebResources.resx

It includes one record
name value
Button1 isbuluyorum

and other fields are empty.

In my Resource.aspx file i add a control like this

<asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 204px; POSITION:
absolute; TOP: 150px" runat="server"
Text="<% $ Resources: WebResources,Button1%>"
Width="184px" Height="36px"> </asp:Button>

When I run my application it is supposed to get a value for button1 from
resx file . Therefore It does nothing . No error no warning.
On my button's it is written like that <% $ Resources:
WebResources,Button1%>

Why it doesnt change my button1's text property ? I want to built a
international web application so it is a basic application to do more in
the future for me ? How can i find out more about Resource Files . Is it the
best way using Resource Files To built multilanguage web-applications ?

Apr 1 '06 #1
1 976
Savas,

I don't know if this makes a difference, but try not putting the space
between the % and the $, like so:

<asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 204px; POSITION:
absolute; TOP: 150px" runat="server"
Text="<%$ Resources: WebResources,Button1%>"
Width="184px" Height="36px"> </asp:Button>

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Savas Ates" <in da club> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I created App_GlobalResources directory and I put my Resource file which
is named
WebResources.resx

It includes one record
name value
Button1 isbuluyorum

and other fields are empty.

In my Resource.aspx file i add a control like this

<asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 204px; POSITION:
absolute; TOP: 150px" runat="server"
Text="<% $ Resources: WebResources,Button1%>"
Width="184px" Height="36px"> </asp:Button>

When I run my application it is supposed to get a value for button1 from
resx file . Therefore It does nothing . No error no warning.
On my button's it is written like that <% $ Resources:
WebResources,Button1%>

Why it doesnt change my button1's text property ? I want to built a
international web application so it is a basic application to do more in
the future for me ? How can i find out more about Resource Files . Is it
the best way using Resource Files To built multilanguage web-applications
?

Apr 1 '06 #2

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

Similar topics

5
by: Adam Parkin | last post by:
Hello all, I am seeking some help with the following problem. I'm working on an application where I have a resource file, and in this resource file what I want to store is a list of file names...
5
by: Drew | last post by:
Assembly asm = Assembly.GetExecutingAssembly(); me = new Bitmap(asm.GetManifestResourceStream("me.gif")); I have used this before without any problem, but now I get: An unhandled exception...
6
by: martin | last post by:
Hi, I have noticed that every aspx page that I created (and ascx file) has an assosiated resource file aspx.resx. However what I would like to do is have a single global resource file for the...
3
by: al | last post by:
Hi, I use a resource file (.resx) to store user's settings such as language and other strings. The problem i'm facing is that when the user changes one of the strings in the resource file, ...
0
by: Kleanthis | last post by:
I have a problem, when deploying multilingual applications using cab files on Compact Framework 2.0. It seems that something is going wrong with compact framework 2.0 Below I have a description...
9
by: Alf P. Steinbach | last post by:
<what to design a C++ solution for> A Windows API /resource/ is data embedded in the executable, accessed via API functions. A resource is completely identified by the quadruple (id, type,...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
2
by: Nesster13 | last post by:
Hi, I am building an application that will utilize the local resource file. Right now the application is separated into two part, the header and the content. One of the line at the top of the...
2
by: =?Utf-8?B?R3JlZw==?= | last post by:
I've added some ICO Images to some buttons on my forms. I added them by selecting an Image via the "Select Resource" window. Anyway, all of my images are working just fine, I am getting a WARNING...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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
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.