如何在Web表单中注册ajax控件工具包 [英] How to register ajax control toolkit in web forms

查看:77
本文介绍了如何在Web表单中注册ajax控件工具包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="aLWAYSvISIBLE.WebForm1" %>

<%@   Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"  TagPrefix="asp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head  runat="server">
    <title></title>
</head>
<body>
    <form id="form1"  runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>





这是 default.aspx 页面的源代码。我已经在网络表单中注册了一个ajax工具包。但是当我拖动控制器从工具箱中删除它时,它不会出现在设计器页面上。我现在应该注册什么以及如何注册?如何在Web表单中注册ajax工具包以使用它们?



This is my source code for default.aspx page. I allready register a ajax toolkit in web form. But when i drag n drop the control from toolbox it doesn''t appear on the designer page.What should I register now and how? how to register ajax toolkit in web forms to use them?

推荐答案

右键单击工具箱==>选择选择项目==>选择浏览 ==>选择.Dll ==>添加
Right click on toolbox==>select "Choose item"==>select"Browse"==>select .Dll==>add


首先,您需要添加 AjaxControlToolkit dll [ ^ ]。

First you need to add the reference of AjaxControlToolkit dll[^].
按照步骤添加引用:

右键单击解决方案资源管理器中的项目。

点击级联菜单中的添加参考。

点击浏览标签

找到你的dll。

点击确定。

Right Click on Project in Solution Explorer.
Click on Add Reference in cascading menu.
Click on Browse tab
Locate your dll.
Click on OK.





现在注册大会:



Now register the assembly:

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp"%>



然后尝试拖放控件。



注意:dll版本应与您在工具箱中添加并在解决方案资源管理器中引用的版本相同。

--Amit


Then try dragging and dropping the controls.

NOTE: The dll versions should be same which you added in toolbox and referenced in solution explorer.
--Amit


这篇关于如何在Web表单中注册ajax控件工具包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆