Dec 02, 2008, 12:12 PM
[FIXED] [V0.7] Menu Exception
Hello,
Good to be back online, here is an example of the issue:
Exception received: Unable to cast object of type 'Coolite.Ext.Web.Menu' to type 'Coolite.Ext.Web.Component'.
Example.aspx:
Cheers,
Timothy
Good to be back online, here is an example of the issue:
Exception received: Unable to cast object of type 'Coolite.Ext.Web.Menu' to type 'Coolite.Ext.Web.Component'.
Example.aspx:
<%@ Page Language="C#" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Example</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True" />
<ext:ScriptManager ID="ScriptManager2" runat="server" StateProvider="PostBack" />
<ext:SplitButton ID="Button11" runat="server" Text="Text">
<Menu>
<ext:Menu ID="Menu2" runat="server">
<Items>
<ext:MenuItem ID="MenuItem4" runat="server" Text="Item 1" Icon="GroupAdd" />
<ext:MenuItem ID="MenuItem5" runat="server" Text="Item 2" Icon="GroupDelete" />
<ext:MenuItem ID="MenuItem6" runat="server" Text="Item 3" Icon="GroupEdit" />
</Items>
</ext:Menu>
</Menu>
</ext:SplitButton>
</form>
</body>
</html>
Load page, immediate exception.Cheers,
Timothy