Ajax Control Toolkit 2011年7月发行-现在在NuGet上

Say what you will about the Ajax Control Toolkit. Some like it, some don't, but it got 1.15 MILLION downloads last year. Is the ACT dead? Not yet, and there's ongoing work around WebForms, jQuery and an ACT style of programming. More on this soon.

说说您对Ajax Control Toolkit的看法。 有人喜欢,有人不喜欢,但去年它的下载量为115万。 ACT死了吗? 尚未,围绕WebForms,jQuery和ACT风格的编程正在进行中。 即将推出更多。

There's like 40 different controls in the Ajax Control Toolkit. They continue to be updated and have cross-browser support. The first release this year added IE9 support. This new July 2011 release adds a a new HTML Editor and more complete browser support including (from Stephen Walther's blog):

Ajax控件工具包中有40种不同的控件。 它们将继续更新并具有跨浏览器支持。 今年的第一版增加了对IE9的支持。 2011年7月发布的新版本增加了新HTML编辑器和更完整的浏览器支持,包括(摘自Stephen Walther的博客):

The HTML Editor Extender works on all modern browsers including the most recent versions of Mozilla Firefox (Firefox 5), Google Chrome (Chrome 12), and Apple Safari (Safari 5). Furthermore, the HTML Editor Extender is compatible with Microsoft Internet Explorer 6 and newer.

HTML编辑器扩展程序可在所有现代浏览器上使用,包括最新版本的Mozilla Firefox(Firefox 5),Google Chrome(Chrome 12)和Apple Safari(Safari 5)。 此外,HTML编辑器扩展器与Microsoft Internet Explorer 6和更高版本兼容。

How do you use it? Now that the AjaxControlToolkit is in NuGet, it's easy either from the Package Manager Console, or from the GUI.

你如何使用它? 现在, AjaxControlToolkit在NuGet中,可以从Package Manager控制台或GUI轻松进行。

You COULD register the AjaxControlToolkit at the top of your page:

您可以在页面顶部注册AjaxControlToolkit:

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

But the NuGet package already added that to your web.config!

但是NuGet软件包已经将其添加到您的web.config中!

<pages>
<controls>
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
</controls>
</pages>

Although I think the prefix should be "act," so I'll change it. Then, just use the controls on your page in ASP.NET WebForms. For example, here's how you turn a standard TextBox into a Color Picker:

尽管我认为前缀应为“ act ”,所以我将其更改。 然后,只需使用ASP.NET WebForms中页面上的控件即可。 例如,下面是将标准TextBox转换为拾色器的方法:

<act:ToolkitScriptManager ID="manager" runat="Server" />

<asp:TextBox ID="txtColorPicker" runat="server" />

<act:ColorPickerExtender TargetControlID="txtColorPicker" runat="server" />

The ToolkitScriptManager only needs to be on the page once.

ToolkitScriptManager仅需要在页面上一次。

Textbox turned into a ColorPicker

This is just one example. Check out the dozens of controls at the Ajax Control Toolkit Sample site.

这只是一个例子。 在Ajax Control Toolkit Sample站点中检查许多控件。

Enjoy!

请享用!

翻译自: https://www.hanselman.com/blog/ajax-control-toolkit-july-2011-release-now-on-nuget

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值