VB.net 2010 视频教程 VB.net 2010 视频教程 python基础视频教程
SQL Server 2008 视频教程 c#入门经典教程 Visual Basic从门到精通视频教程
当前位置:
首页 > 网站开发 > JavaScript >
  • 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.
控件将非常容易被放到工具箱上.

 

出处:https://www.cnblogs.com/chillsrc/archive/2006/03/27/360199.html


相关教程