Sep 02, 2015, 5:34 PM
Your .cs Class must extend
System.Web.UI.Page
.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StaticTest.aspx.cs" Inherits="Crystal.Views.Support.StaticTest" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
<title>Test</title>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server">
<Listeners>
<DocumentReady Handler="App.direct.TestDirectEvent('55');" />
</Listeners>
</ext:ResourceManager>
<ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout">
<Items>
<ext:Panel ID="Panel1" runat="server" Region="North" Height="70">
<Content>
<h3>Test</h3>
</Content>
</ext:Panel>
</Items>
</ext:Viewport>
</form>
</body>
</html>
Example (.cs)using Ext.Net;
namespace Crystal.Views.Support
{
public partial class StaticTest : System.Web.UI.Page
{
[DirectMethod()]
public void TestDirectEvent(string id)
{
X.Msg.Notify("id", id).Show();
//Console.Write("TEST");
}
}
}
Hope this helps.
.Url
property with the path to the Controller.
[DirectController]
attribute to get DirectMethod proxies rendered to client.