RESOURCE FILE PROBLEM

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Savas Ates

    #1

    RESOURCE FILE PROBLEM

    I created App_GlobalResou rces directory and I put my Resource file which is
    named
    WebResources.re sx

    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,Bu tton1%>"
    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,Bu tton1%>

    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 ?



  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: RESOURCE FILE PROBLEM

    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,Bu tton1%>"
    Width="184px" Height="36px"> </asp:Button>

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Savas Ates" <in da club> wrote in message
    news:%238HviFZV GHA.5288@TK2MSF TNGP14.phx.gbl. ..[color=blue]
    >I created App_GlobalResou rces directory and I put my Resource file which
    >is named
    > WebResources.re sx
    >
    > 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,Bu tton1%>"
    > 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,Bu tton1%>
    >
    > 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
    > ?
    >
    >
    >[/color]


    Comment

    Working...