zoukankan      html  css  js  c++  java
  • MagicAjax 简单使用介绍(翻译)

        本人的英文水平不高,翻译中有错的地方请指出。翻译的不对的地方请见笑。
            主要是让自己看的,所以知道是那个意思就是了。词不达意的地方肯定会有不少。


    MagicAjax Integration
    MagicAjax 综合


    Modifying web.config
    修改 web.config


    The MagicAjaxModule should be registered in the system.web section of the web.config file of your application, like this:
    MagicAjaxModule 应该在你的应用程序的 web.config 文件中的 system.web 节中被注册, 例如:

    <httpModules>

    <add name="MagicAjax" type="MagicAjax.MagicAjaxModule, MagicAjax" />

    </httpModules>


    MagicAjax will work with the default configuration options.
    MagicAjax 将工作在默认配置选项下.


    If you want to change an option you must define it in web.config; see Configuration Options
      如果你想要改变MagicAjax的一些选项,你必须在在 web.config 中定义它的选项;参见到配置选项

    Adding the controls on page

    在页面上添加控件

    A tag prefix should be registered for MagicAjax's controls namespace at the top of the page like this:
    标签前缀应该在像这一样的页顶端被登记 MagicAjax's 的控制 namespace,如下:

    <%@ Register TagPrefix="ajax" Namespace="MagicAjax.UI.Controls" Assembly="MagicAjax" %>


    Controls can then be defined using the tag prefix:
    然后控件能使用这个标签来定义:

    <ajax:AjaxPanel id="AjaxPanel1" runat="server">
    </ajax:AjaxPanel>

    For more information about the controls of the framework see Usage
    关于这个控件的更多信息请看Usage.


    Putting the controls in Toolbox (Visual Studio .NET 2003)
    把控件放到vs 2003的工具箱

    It is recommended that you put the controls of MagicAjax in toolbox so that you can add them on page with a simple drag'n'drop.
    推荐方法,你应把 MagicAjax 的控件放到工具箱上,以便你能在和简单的 通过拖拉 在页面上增加他们。

     At Visual Studio, from the Tools menu choose Add/Remove Toolbox Items, click on Browse and find the MagicAjax.dll file.
    放到工具箱上的方法,打开VS, 从工具菜单中选择增加/除去工具箱, 按在浏览而且找 MagicAjax.dll 文件之上。

     The controls will be placed in toolbox for easy access.
    控件将非常容易被放到工具箱上.

  • 相关阅读:
    线性回归——梯度下降
    Python 实现 KNN(K-近邻)算法
    Python 增加博客园阅读量
    阿里云CentOS安装配置Python3.7及pip3
    OnlineJudge难度与正确度的相关性检验
    jsp、jQuery、servlet交互实现登录功能
    Java Web中提交表单之后跳转到WebContent目录下的子目录里的jsp文件
    python3爬虫——下载unsplash美图到本地
    defer原理、性能、优化
    Python生成器和迭代器
  • 原文地址:https://www.cnblogs.com/chillsrc/p/360199.html
Copyright © 2011-2022 走看看