473,659 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dreamweaver using .resource files

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?

May 29 '07 #1
2 2002
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?

May 30 '07 #2
That didn't work for me. My site just displayed "<%$
Resources:Globa lResources,
HeaderText %>" in <h1format. My asp server compiles other code. Do
you know what the problem could be?
thanks!

Jun 11 '07 #3

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

Similar topics

11
2803
by: jm | last post by:
Somebody on here recommended Dreamweaver with PHP. I am coming from (still using really) ASP and ASP.NET. PHP is more like ASP and not a whole lot like .net, but I wanted to know how Dreamweaver will help me with PHP. Is it easier to make a website "prettier" with Dreamweaver? Just need guidance on why to use Dreamweaver with PHP. I am using HTML kit or notepad and, of course, Google. Usually use the languages and objects for hitting...
5
1952
by: I.P. Freely | last post by:
Hi, I've been using Visual Studio.NET for a while to design WinForms and Console apps and love it. Recently I had to a WebForms app. Because I have no artistic skill whatsoever, I enlisted the help of one of our web designers. She's a DreamWeaver expert, but I insisted that she use Visual Studio because I was under the mistaken impression that DW doesn't support WebForms, Visual Source Safe, and the other essential features that are...
0
1458
by: James Zhuo | last post by:
hi all I changed the name of the class LoginPage to a different name "LoginPageOne" But the same error gets generated with the Wiliam.Request.LoginPageOne. That pretty much leaves me clueless at this point. Please help Cheer
4
1676
by: Ian | last post by:
Hi there, Has anybody got any tips or recommendations for using Vs.Net and Dreamweaver 2004 together? I like to use dreamweaver as the layout tool as for me it just seems a little more powerful but Vs.Net is the best for coding.. Any advice for anybody with tips or pitfalls to watchout for would be gratefully appreciated
1
1209
by: Art Vandelay | last post by:
Does anyone have any real world experience or recommendations of how to let our hardcore designers use Dreamweaver, CSS, and Templates(the pretty part) while letting our hardcore programmers develop the "Code" part using Visual Studio? To do cutting edge stuff, we really need a way to let both programs do what they do best and merge the results without it being a maintenance nightmare. Should the programmers rough in the forms then...
4
1703
by: Adam Knight | last post by:
Hi all, I am using a dreamweaver template for a web app i am working on. Each time i update the template my page directives at the top of the associated pages gets removed. Anyone had problems with this? Know how to fix? Fill me in on what is going on?
4
1854
by: TCook | last post by:
Hey All, I am building a solution which will have many strings that will need to be localized (i.e. strings for toolbars, strings for different WinForms, strings for messages and error messages, etc.). I am having trouble accessing string file resources. What I want to do is to break out strings into separate files so that they are easier to manage and such that I don't have to look through hundreds to
2
3519
by: Andrus | last post by:
I have resource files in different languages created by VCS 2005 Express. I want to use those files to translate reports at runtime. I have text to be translated as string. I think I need to search resource file for this string id. After that I need to return translated string from other resouce file ? Is this best idea? Where to find sample code which implements this ?
1
1313
by: Rishi Boparai | last post by:
I'm using Dreamweaver to create the layout and manage my ASP.net 2 site. However, all ""code-behind"" is done in Visual Studio 2005 On my ASP.net pages I need to have a different declaration at the top of each page, e.g.: It was my understanding that Dreamweaver would leave alone any code outside of the < html tag However, whenever I update my template, the ASP.net declarations in the pages based on the template are removed by...
0
8427
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8332
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8746
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8525
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8627
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7356
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6179
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2750
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.