zoukankan      html  css  js  c++  java
  • MagicAjax.NET Framework Integration

    Modifying web.config

    The MagicAjaxModule should be registered in the system.web section of the web.config file of your application, like this:

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

    MagicAjax will work with the default configuration options. If you want to change an option you must define it in 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:

    <%@ 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

    Putting the controls in Toolbox (Visual Studio .NET 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. At Visual Studio, from the Tools menu choose Add/Remove Toolbox Items, click on Browse and find the MagicAjax.dll file. The controls will be placed in toolbox for easy access.

  • 相关阅读:
    面试题6 重建二叉树
    面试题5 从尾到头打印链表
    面试题4 替换空格
    面试题3 二维数组中查找
    面试题2 单例
    C++ 强制类型转换
    C++ 11 新特性
    STL 函数对象
    STL 算法
    OpenSSH多路复用Multiplexing配置
  • 原文地址:https://www.cnblogs.com/xh831213/p/402402.html
Copyright © 2011-2022 走看看