PDA

View Full Version : [CLOSED] DirectMethod with empty namespace not working



sailendra
Mar 13, 2012, 6:55 PM
Below code is giving js error due to empty namespace, I don't want to use the namespace, is there any workaround?



<%@ Page Language="C#" AutoEventWireup="true" %>

<script type="text/C#" runat="server">

[DirectMethod]
public void Process()
{
X.MessageBox.Show(
new MessageBoxConfig
{
Message = "hello"
});
}

</script>
<body>
<form id="form1" runat="server">
<ext:ResourceManager runat="server" Namespace="">
</ext:ResourceManager>
</form>
</body>

Vladimir
Mar 14, 2012, 10:21 AM
Hi,

You can set DirectMethodNamespace


<ext:ResourceManager runat="server" Namespace="" DirectMethodNamespace="Ext.net.DirectMethods" />


Thanks for the report, we will fix the issue in next public release