Hi,
I'm trying to implement explicit localization with global resources.
I followed the steps mentioned in http://msdn.microsoft.com/library/fw69ke6f%28en-us,vs.80%29.aspx
If I run the page in VS 2005, it works fine, but if i implement the folder structure in IIS webserver is not working.
Im getting Parser error in browser stating. :
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 'msg2' was not found.
Source Error:
Line 14: <form id="form1" runat="server">
Line 15: <div>
Line 16: <asp:Button ID="Button1" runat="server" Text="<%$ Resources:Resource, msg2 %>" /><br />
Line 17: <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Resource, msg1 %>"></asp:Label></div>
Line 18: </form>
|
Following is the code im using in aspx page.
<%@ Page Language="VB" culture="auto" UICulture="auto"%>
<!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>explicit localization</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="<%$ Resources:Resource, msg2 %>" /><br />
<asp:Label ID="Label1" runat="server" Text="<%$ Resources:Resource, msg1 %>"></asp:Label></div>
</form>
</body>
</html>
Not sure what I'm missing
Any help would be highly appreciated.
Thanks In Advance,