MagicAjax.NET Framework Integration集成

本文介绍了如何在项目中集成MagicAjax.NET框架,包括在web.config文件中注册MagicAjaxModule模块,为MagicAjax控件注册标签前缀,并将控件添加到页面的方法。还提供了将MagicAjax控件添加到Visual Studio工具箱的步骤。

MagicAjax.NET Framework<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Integration

MagicAjax Integration

Modifying 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. 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:

在页面的顶部,一个标记的前缀应该进行注册,

<%@ Register TagPrefix="<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />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.

推举的做法,是把MagicAjax放到工具箱中

 

Copyright © 2005-2006 by The MagicAjax.NET Team

 

转载于:https://www.cnblogs.com/snowball/archive/2007/01/07/613995.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值