Master page and sub page - localization issuehttp://forums.asp.net/t/1788114.aspx/1?Master+page+and+sub+page+localization+issueThu, 12 Apr 2012 20:31:53 -040017881144911685http://forums.asp.net/p/1788114/4911685.aspx/1?Master+page+and+sub+page+localization+issueMaster page and sub page - localization issue <p>I am using Masterpage &amp; my site is primarily in German. I have included globalisation in web.config &amp; also in master page meta:</p> <p>&lt;meta http-equiv=&quot;content-language&quot; content=&quot;en, de&quot; /&gt;</p> <p>But, my subpages are not displaying German language.</p> <p>Where am I going wrong. Please help.</p> <p></p> <p>Regards,</p> <p>Shankar</p> 2012-04-02T11:31:33-04:004917225http://forums.asp.net/p/1788114/4917225.aspx/1?Re+Master+page+and+sub+page+localization+issueRe: Master page and sub page - localization issue <p>Hi, hope this helps:</p> <p><a href="http://msdn.microsoft.com/en-us/library/bz9tc508.aspx">http://msdn.microsoft.com/en-us/library/bz9tc508.aspx</a></p> 2012-04-05T06:07:36-04:004917264http://forums.asp.net/p/1788114/4917264.aspx/1?Re+Master+page+and+sub+page+localization+issueRe: Master page and sub page - localization issue <p>No, I have tried using all these. It is not helping.</p> <p>In my master page, the language is German but subpages inheriting masterpage show some odd characters and not german.</p> <p>Any other suggestions please.</p> 2012-04-05T06:34:00-04:004917478http://forums.asp.net/p/1788114/4917478.aspx/1?Re+Master+page+and+sub+page+localization+issueRe: Master page and sub page - localization issue <p>Hi, please create a standalone web page without master page to test, and set the culture and UI culture for this page.</p> 2012-04-05T08:22:53-04:004917484http://forums.asp.net/p/1788114/4917484.aspx/1?Re+Master+page+and+sub+page+localization+issueRe: Master page and sub page - localization issue <p>Thanks for your reply.</p> <p>It works in standalone page. My default.aspx page is not in masterpage &amp; here the language works fine. In masterpage content, it works. But in subpage content it is not working.</p> <p></p> 2012-04-05T08:24:48-04:004917507http://forums.asp.net/p/1788114/4917507.aspx/1?Re+Master+page+and+sub+page+localization+issueRe: Master page and sub page - localization issue <p>Hi, please add</p> <pre class="prettyprint">&lt;meta http-equiv=&quot;content-language&quot; content=&quot;en, de&quot; /&gt; to your first Content in content page which ContentPlaceHolderID=&quot;head&quot; and check.</pre> <p><br> <br> </p> 2012-04-05T08:34:08-04:004918006http://forums.asp.net/p/1788114/4918006.aspx/1?Re+Master+page+and+sub+page+localization+issueRe: Master page and sub page - localization issue <p>Thanks again. I have included&nbsp;</p> <pre class="prettyprint">&lt;meta http-equiv=&quot;content-language&quot; content=&quot;en, de&quot; /&gt;</pre> <pre class="prettyprint"><span class="tag">in the master page. But as per your suggestion I added a </span>ContentPlaceHolder in master page &amp; included </pre> <p>&lt;asp:Content ID=&quot;contenthead&quot; ContentPlaceHolderID=&quot;head&quot; runat=&quot;Server&quot;&gt;<br> &lt;meta http-equiv=&quot;content-language&quot; content=&quot;en, de&quot; /&gt;<br> &lt;/asp:Content&gt;</p> <p>in content page. No luck.</p> <p>Any other suggestions please.</p> 2012-04-05T12:22:33-04:004919033http://forums.asp.net/p/1788114/4919033.aspx/1?Re+Master+page+and+sub+page+localization+issueRe: Master page and sub page - localization issue <p>Hi, rather than adding&nbsp;a ContentPlaceHolder in master page, I means to add&nbsp;</p> <pre class="prettyprint">&lt;meta http-equiv=&quot;content-language&quot; content=&quot;en, de&quot; /&gt;</pre> <pre class="prettyprint"><span class="x_tag"><span class="tag">to your content page, like this:</span></span></pre> <p>&lt;asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"&gt;</p> <pre class="prettyprint">&lt;meta http-equiv=&quot;content-language&quot; content=&quot;en, de&quot; /&gt;</pre> <p>&lt;/asp:Content&gt;</p> <pre class="prettyprint"><span class="x_tag"><span class="tag"><br /></span></span></pre> 2012-04-06T06:46:47-04:004919060http://forums.asp.net/p/1788114/4919060.aspx/1?Re+Master+page+and+sub+page+localization+issueRe: Master page and sub page - localization issue <p>Thanks for the reply. That is what I did. But still not working.</p> <p>Any other suggestions....</p> 2012-04-06T07:01:29-04:004919187http://forums.asp.net/p/1788114/4919187.aspx/1?Re+Master+page+and+sub+page+localization+issueRe: Master page and sub page - localization issue <p>Hi, please paste your mater page, content page and one standalone page markup here.</p> 2012-04-06T08:18:36-04:004919742http://forums.asp.net/p/1788114/4919742.aspx/1?Re+Master+page+and+sub+page+localization+issueRe: Master page and sub page - localization issue <p>Masterpage:</p> <p></p> <p><br> &lt;asp:ContentPlaceHolder ID=&quot;head&quot; runat=&quot;server&quot;&gt;<br> &lt;/asp:ContentPlaceHolder&gt;</p> <p>I added the contentplaceholder after you had suggested.</p> <p>The page:</p> <p>&lt;%@ Page Language=&quot;VB&quot; MasterPageFile=&quot;~/PublicMaster.master&quot; AutoEventWireup=&quot;false&quot;<br> CodeFile=&quot;contact.aspx.vb&quot; Inherits=&quot;contact&quot; Title=&quot;Contact us&quot; %&gt;</p> <p>&lt;%@ Register Assembly=&quot;AjaxControlToolkit&quot; Namespace=&quot;AjaxControlToolkit&quot; TagPrefix=&quot;cc1&quot; %&gt;<br> &lt;asp:Content ID=&quot;contenthead&quot; ContentPlaceHolderID=&quot;head&quot; runat=&quot;Server&quot;&gt;<br> &lt;meta http-equiv=&quot;content-language&quot; content=&quot;en, de&quot; /&gt;<br> &lt;/asp:Content&gt;</p> <p>I have added the&nbsp;asp:Content after your suggestion.</p> <p>Still the page doesn't work in german.</p> <p>The page is available in the following link:</p> <p>myclientssite.recruitmentexchange.com/contact.aspx</p> <p>You can see that the menu items that are in Masterpage are displaying German characters. But in the content page, below corporate office, the characters are not recognised.</p> <p>Think I am taking lots of your time. Thanks for supporting.</p> <p></p> 2012-04-06T13:59:37-04:004929941http://forums.asp.net/p/1788114/4929941.aspx/1?Re+Master+page+and+sub+page+localization+issueRe: Master page and sub page - localization issue <p>I found the problem. In my web.config, based on some blog, I had included the following:</p> <p>&nbsp; &nbsp; &lt;globalization enableClientBasedCulture=&quot;true&quot; culture=&quot;de-DE&quot; uiCulture=&quot;de-DE&quot; requestEncoding=&quot;utf-8&quot; responseEncoding=&quot;utf-8&quot; fileEncoding=&quot;utf-8&quot;/&gt;</p> <p>Today I faced another issue where by datetime was displayed in DD-MM-YYYY format. So I tweeked my web.config globalization.</p> <p>I found that culture=&quot;&quot;de-DE&quot; was creating the datetime issue.</p> <p>After that I removed:</p> <p>requestEncoding=&quot;utf-8&quot; responseEncoding=&quot;utf-8&quot; fileEncoding=&quot;utf-8&quot;</p> <p>from the globalization tag &amp; woohooo - I started getting proper German character in my website.</p> <p>Just wanted to post this here so that someone else with the same issue will not have to break their heads :)</p> <p>Thanks FightAsABull for your help.</p> <p>Happy coding.</p> 2012-04-12T20:31:53-04:00