网页请求的全局事件 [英] Global Event for Page request

查看:43
本文介绍了网页请求的全局事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是asp.net的新手.对于服务器中的每个请求,asp.net是否引发任何单个事件?
在此先谢谢您.

Hi,
I am new to asp.net. Is there any single event that is raised by asp.net for each and every request that comes to the server?
Thanks in advance.

推荐答案

根据您的需要使用InitLoad.
http://msdn.microsoft.com/en-us/library/system. web.ui.page_events.aspx [ ^ ]

然后使用Application.BeginRequest.
http://msdn.microsoft.com/en-us/library/system. web.httpapplication.beginrequest.aspx [ ^ ]
Use Init or Load based on your need.
http://msdn.microsoft.com/en-us/library/system.web.ui.page_events.aspx[^]

Use Application.BeginRequest then.
http://msdn.microsoft.com/en-us/library/system.web.httpapplication.beginrequest.aspx[^]


如果您想跟踪所有到Web服务器的请求,那么 HttpModule 可以为您提供帮助.

看看下面的链接.这将为您提供有关Asp.Net中 HttpModule HttpHandler 的详细信息.

http://www.15seconds.com/issue/020417.htm
If you want to track all the requests coming to your Web Server, Then HttpModule can help you.

Have a look at below link. This will give you details around HttpModule and HttpHandler in Asp.Net.

http://www.15seconds.com/issue/020417.htm


您好,

是的,我们可以使用处理程序来处理服务器中的每个请求.

在这里,为此提供的链接"检查了此链接,以了解我们如何通过单一方法处理服务器中的每个请求.

http://www.codeproject.com/KB/aspnet/Httphandlers_ASPNET.aspx

http://www.codeproject.com/KB/aspnet/HttpModuleandHttpHandle.aspx


希望这些链接可以为您提供帮助

一切顺利
Hi,

Yeah we can handle each and every request in server by using handlers.

Here ''m provding link for that check this link to know how we handle each and every request in server by single method.

http://www.codeproject.com/KB/aspnet/Httphandlers_ASPNET.aspx

http://www.codeproject.com/KB/aspnet/HttpModuleandHttpHandle.aspx


I hope these links can help you

All the best


这篇关于网页请求的全局事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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