Coolite AjaxMethod

1.前台代码

    <form id="form1" runat="server">
        <ext:ScriptManager runat="server">
        </ext:ScriptManager>
   
        <ext:TreePanel ID="TreePanel1" runat="server" RootVisible="true" Height="600px" Width="800px" AutoScroll="true" ContainerScroll="True">
          
            <Listeners>
                <Click Handler="Coolite.AjaxMethods.Select(node.attributes.hrefTarget);" />
            </Listeners>                            
        </ext:TreePanel>
    </form>

2.后台代码

        [AjaxMethod]
        public void Select(string kind)
        {
            Ext.Msg.Alert("当前选中值", kind).Show();
        }

你可能感兴趣的:(method)