Parser Error Problem
<p>Hi I have found a problem in Multilingual Asp.Net Web Application </p>

<p>I have Created a Global.asax file and write the code</p>

<pre><code>private void Application_BeginRequest(Object source, EventArgs e)
{
    string[] languages = HttpContext.Current.Request.UserLanguages;

    if (languages[0].ToLower() != null &amp;&amp; languages[0].ToLower()!="")
    {

        System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(languages[0].ToLower());

        System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture(languages[0].ToLower());

    }
}
</code></pre>

<p>and define Label Like this </p>

<pre><code>   &lt;asp:Label ID="Labeldg" runat="server" Text="&lt;%$ Resources:Resource, Labeldg %&gt;"&lt;/asp:Label&gt;
</code></pre>

<p>But it through Parser error like:</p>

<blockquote>
  <p>Parser Error 
  Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. </p>
  
  <p>Parser Error Message: The resource object with key 'LblUsrName_Login' was not found.
  Source Error: </p>
  
  <p><code>&lt;/div&gt;</code></p>
  
  <p><code>&lt;div class="impcLoginText_Login"&gt;</code></p>
  
  <p><code>&lt;asp:Label ID="LblUsrName" runat="server" Text="&lt;%$ Resources:PageResource,  LblUsrName_Login %&gt;" "&gt;&lt;/asp:Label&gt;</code></p>
</blockquote>
