简体   繁体   English

Ajax Control Toolkit和自定义HttpModules

[英]Ajax Control Toolkit and custom HttpModules

I'm creating an ASP.NET application (.NET 2.0) with C# and I'm using the AJAX Control Toolkit. 我正在使用C#创建一个ASP.NET应用程序(.NET 2.0),并且正在使用AJAX控制工具包。

To ensure security I'm using a custom HttpModule to verifiy the user credentials on each request. 为了确保安全,我使用自定义HttpModule来验证每个请求上的用户凭据。 In the developement envirenment everything works as expected, but in the production environment some of the controls don't work, like the CalendarExtender for example. 在开发环境中,所有内容均按预期工作,但在生产环境中,某些控件不起作用,例如CalendarExtender。 However, if I disable the HttpModule , the controls start working again. 但是,如果禁用HttpModule ,则控件将再次开始工作。

Is there any relation between the Ajax Control Toolkit and custom HttpModules ? Ajax Control Toolkit和自定义HttpModules之间是否有任何关系?

If not, can any one please explain how to solve this problem. 如果没有,请解释一下如何解决此问题。

Thanks, 谢谢,

我解决了这个问题,我刚刚将控制访问权限的代码从PostAcquireRequestState事件处理程序移到了PostRequestHandlerExecute。

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

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