By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,641 Members | 1,446 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,641 IT Pros & Developers. It's quick & easy.

RESOURCE FILE PROBLEM

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.