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.
    控件将非常容易被放到工具箱上.

  • 相关阅读:
    数据结构基础(二)排序算法
    数据结构基础(一) 时间空间复杂度分析
    347. Top K Frequent Elements, O(N) solution
    409. Longest Palindrome
    556. Next Greater Element III
    CH0103 最短Hamilton路径(状压DP)
    牛客OI周赛13-提高组A-0还是1(简单DP)
    Codeforces Round #678 (Div. 2) C. Binary Search(二分查找/思维/排列组合)
    Codeforces Round #677 (Div. 3) A-E
    函数实现复合命题的计算及判断两个命题是否等值——中缀表达式转后缀表达式
  • 原文地址:https://www.cnblogs.com/chillsrc/p/360199.html
Copyright © 2011-2022 走看看