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

Can a local resource string be dynamic (asp.net 2.0)

P: n/a
Hi.

I have a web project, that is intended to be installed multiple times as
different product with different names. All strings in the web are placed in
local resource files. In some of the strings, we would like to put the name
of the site, different contact e-mail etc. Would it be possible to make
these strings as global resources and then reference then dynamically
include that from a local resource?
Something like

SomeLiteral.Text: "Welcome to <%GlobalResource:SiteName%>"

As written in the subject, this is running on ASP.NET 2.0

Thanks in advance,
Peter Strĝiman
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Peter,

Welcome to ASPNET newsgroup.
As for the linking global resource in local resource file question, based
on my research, this is not available since both local resource or global
resoruce file only contains static resource , that measn the content in the
resourse file won't be parsed by any .net language engine, so embed .net
expression in it won't work and will be treated as static string contents.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Peter Strĝiman" <pe************@nospam.nospam>
| Subject: Can a local resource string be dynamic (asp.net 2.0)
| Date: Tue, 23 Aug 2005 09:19:58 +0200
| Lines: 18
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <eb**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 130.227.118.130
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:119625
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi.
|
| I have a web project, that is intended to be installed multiple times as
| different product with different names. All strings in the web are placed
in
| local resource files. In some of the strings, we would like to put the
name
| of the site, different contact e-mail etc. Would it be possible to make
| these strings as global resources and then reference then dynamically
| include that from a local resource?
| Something like
|
| SomeLiteral.Text: "Welcome to <%GlobalResource:SiteName%>"
|
| As written in the subject, this is running on ASP.NET 2.0
|
| Thanks in advance,
| Peter Strĝiman
|
|
|

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.