Hello Walter Wang [MSFT],
It did the job, thanks!
Hi Laith,
>
Thank you for your post.
>
Based on my understanding, your question is how to use local resources
to set the content page's title. If I've misunderstood anything,
please feel free to post here.
>
Please use following steps to use local resources to set content
page's
title:
1) In the folder where the content page resides, create a subfolder
"App_LocalResources" if it doesn't exist yet;
2) In the subfolder, create a resource file named after the content
page
file name, for example: "Default2.aspx.resx", and create a resource
key
"PageTitle", set its content to your desired page title.
3) In the content page declaration, use following code to use the
resource:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"
UICulture="auto" AutoEventWireup="true" CodeFile="Default2.aspx.cs"
Inherits="Default2" Title="<%$ Resources:PageTitle %>" %>
>
If you want to add additional languages, just add more
"Default2.aspx.??.resx" to the "App_LocalResources" subfolder. You
also need to set UICulture="auto" in the @ Page directive or include a
<globalization uiCulture="auto"/element in web.config if you need
to use different resources by client browser settings.
>
Hope this helps. Please feel free to post here if anything is unclear.
>
Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader
so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
>