zoukankan      html  css  js  c++  java
  • EXT.NET按钮事件返回值处理

    .aspx

    <ext:Button ID="Button1" runat="server" Text="2*2=?" Icon="Lightning">

    <Listeners>

    <Click Handler="

            Ext.net.DirectMethods.GetTimeStamp(2,{

             success: function (result) {

              txtGet.setValue(result);

    }

    });" />

    </Listeners>

    </ext:Button>

    <ext:TextField ID="txtGet" runat="server" FieldLabel="显示结果"></ext:TextField>

    .cs代码:

     

    [DirectMethod]

    public string GetTimeStamp(int value)

    {

         int result = value * value;

         return result.ToString();

    }

  • 相关阅读:
    delete
    Database Files and Filegroups
    Getting ready for SQL Database
    Why are there directories called Local, LocalLow, and Roaming under Users<username>AppData?
    sql change automation
    What is the difference between POST and GET?
    Which side is more logical: front-end or back-end?
    The configuration element is not declared
    nlog配置文件的自动查找
    Serilog配置
  • 原文地址:https://www.cnblogs.com/spring_wang/p/3072231.html
Copyright © 2011-2022 走看看