简体   繁体   English

ASP.NET的可访问控件

[英]Accessible controls for ASP.NET

In my last job we ended up rewriting the complete ASP.NET stack (forms, controls, validation, postback handling, ajax library etc...) - the reason I was given was that the ASP.NET controls were not accessible enough, not were any of the third party controls that were assessed for the project. 在我的上一份工作中,我们最终重写了整个ASP.NET堆栈(表单,控件,验证,回发处理,ajax库等)-我得到的原因是ASP.NET控件的访问性不够,不是是为该项目评估的任何第三方控制。

Can anyone point me to good accessible ASP.NET controls that do ajax as well? 谁能指出我也可以执行Ajax的良好可访问ASP.NET控件?

Failing that, how would you approach creating accessible, ajax enabled controls? 如果不这样做,您将如何创建可访问的,启用ajax的控件?

You could take a look at the 'App_Browsers' feature in .NET. 您可以看看.NET中的“ App_Browsers”功能。

It gives you the opportunity to hook into the rendering engine for each control. 它为您提供了连接到每个控件的渲染引擎的机会。 The original intention for this was to be able to alter the HTML output of controls depending on the user's browser - but you can also do it for all browsers. 这样做的初衷是能够根据用户的浏览器更改控件的HTML输出-但您也可以在所有浏览器中使用它。

You could also take a look at these control adapters , which make the normal ASP.NET controls 'CSS Friendly'. 您也可以看看这些控件适配器 ,它们使普通的ASP.NET控件“ CSS Friendly”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM