Click here to Skip to main content
15,890,408 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I'm creating multilingual website in French and Arabic.
I added local resources.
Everything has been translated in respective language, but TITLE of the page remains constant, even though I change Value of every string in respective language.


Please, provide me solution.
Posted
Comments
Sandeep Mewara 30-Dec-11 3:08am    
Are you setting page title at runtime via code-behind?

ASP.NET
<title><asp:Literal runat="server" Text="<%$ Resources: GlobalPage, LoginTitle %>" /></title>

Use this code and it worked
 
Share this answer
 
v2
Comments
RaviRanjanKr 30-Dec-11 17:42pm    
A suggestion :- you can use Have a question or Comment button to drop your message and to get Immediate response instead of posting as answer.
Solution - now it is good ( don't make downvoted )
ASP.NET
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title id= "TestPage" title="<%$ Resources:resource,NAME %> + page"">Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

    </div>
    </form>
</body>
</html>
 
Share this answer
 
v3
Comments
Sant Osha 30-Dec-11 2:50am    
Whats this??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900