Nov 09, 2010, 12:00 PM
[CLOSED] ResourceManager causes excpetion
Hi,
the following code works great without the ResourceManager. If i add the ResourceManager i get the following Excpetion:
the following code works great without the ResourceManager. If i add the ResourceManager i get the following Excpetion:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
public class MyConfig
{
public const int Value = 1;
}
</script>
<!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>
<script type="text/javascript">
var x = <%= MyConfig.Value %>;
</script>
</head>
<body>
<ext:ResourceManager ID="ResourceManager" runat="server" ScriptMode="Debug" />
</body>
</html>
Last edited by Daniil; Nov 11, 2010 at 9:08 AM.
Reason: [CLOSED]