If this is page by page, you do the following:
1. Create a directory called App_LocalResour ces
2. Name the resource file for default.aspx default.aspx.re sx
3. Use the following tag to get the value Header from this file (assuming a
name of HeaderText)
<%$ Resources:Heade rText %>
as in
<h1><asp:Labe l runat="server" Text="<%$ Resources:Heade rText %>"
id="Label3"/></h1>
For global resources
1. Create a directory called App_GlobalResou rces
2. Name the file something like GlobalResources .resx (name not as important
as matching the file name to the class name in the next step)
3. Use the following tag (note the GlobalResources class name as this is the
major change from local resources)
<%$ Resources:Globa lResources, HeaderText %>
as in
<h1><asp:Labe l runat="server" Text="<%$ Resources:Globa lResources,
HeaderText %>" id="Label3"/></h1>
Rule: ClassName = RESX file name.
If you do this, ASP.NET can be set up to automatically localize content when
you have the proper language resource files. You will have to add a
globalization tag to the web.config.
For a great intro, find Michele Leroux Bustamante's articles on MSDN. You
can also find her blog at
www.dasblonde.com.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)
*************** *************** *************** ***
Think outside the box!
*************** *************** *************** ***
"Daniel" <da**********@g mail.comwrote in message
news:11******** **************@ o5g2000hsb.goog legroups.com...
>I am just investigating on .resx and .resource files using asp.net. I
am attempting to develop a webpage in Dreamweaver on an asp.net
webserver. As i read around the net, using a .resource file for all
my text on my website seems like the best way to go. I would just
have a fr.resource file for each language. This seems like it would
work pretty well. I have been able to create the .resource files but
i do not know how to read them to put on my website. Most of the
information i have been reading explains how to do this with VBstudio,
but i am using dreamworks. Can someone point me in the right
direction?