在asp.net中提出新请求时,每次执行哪个页面或类 [英] Which page or class is executed every time When new request is made in asp.net
本文介绍了在asp.net中提出新请求时,每次执行哪个页面或类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,你好..
每次发出新请求时都执行哪个页面或类..
我想知道每次都叫哪个课....
因为我必须处理一些新请求启动的代码.或在地址栏中键入新文件
请帮助我
Hello all of u ..
Which page or class is executed every time When new request is made ..
I wants to know which class is called every time....
Beacause I have to handle some code new request initiate. or new file is typed in address bar
Please Help me
推荐答案
在global.asax
中,您可以拥有
Inglobal.asax
you can have
protected void Application_BeginRequest(object sender, EventArgs e)
方法.每个页面请求都会调用此方法.
更新:
method. This method will be called on every page request.
Update:
void Application_BeginRequest(object sender, EventArgs e)
{
string URL = context.Request.RawUrl;
}
这篇关于在asp.net中提出新请求时,每次执行哪个页面或类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文