Sep 15, 2010, 4:16 AM
Why i am getting the parser error using the language resourcses
Server Error in '/' Application.
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.
Parser Error Message: The resource object with key 'txtFirstName.FieldLabel' was not found.
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.
Parser Error Message: The resource object with key 'txtFirstName.FieldLabel' was not found.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="testresourcework.aspx.cs" Inherits="DRMSApplication.testresourcework"%>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!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></title>
</head>
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:FormPanel
ID="Panel1"
runat="server"
Height="185"
Width="350"
Padding="5">
<Items>
<ext:TextField
ID="txtFirstName"
runat="server"
FieldLabel="<%$ Resources: txtFirstName.FieldLabel %>"
AnchorHorizontal="100%"
/>
<ext:TextField
ID="txtLastName"
runat="server"
FieldLabel="<%$ Resources: txtLastName.FieldLabel %>"
AnchorHorizontal="100%"
/>
</Items>
</ext:FormPanel>
</body>
</html>
I created the resource file in App_LocalResources folder as Resources.resx<data name="txtFirstName.FieldLabel" xml:space="preserve">
<value>First Name</value>
</data>
<data name="txtLastName.FieldLabel" xml:space="preserve">
<value>LastName</value>
</data>