httpmodule是用来获取上传进度的,只需要上传那个页面受影响就行了?怎么解决,小弟才学httpmodule,不太懂啊,呵呵。
5 个解决方案
#1
httpmodule将截获所有http请求,你可以根据请求的url来判断
#2
你还需要在配置文件中配置需要排除的文件或文件扩展名
#3
怎么配置?
#4
对,你说的正是我想要表达的,但是具体怎么实现?我不知道
#5
-_-你连httpmodule的作用都没搞清楚就拿来用。
来自MSDN的代码片段:
private void Application_BeginRequest(Object source, EventArgs e)
{
HttpApplication application = (HttpApplication)source;
HttpContext context = application.Context;
string filePath = context.Request.FilePath;
//TODO:判断URL,context.Request.Url
}
来自MSDN的代码片段:
private void Application_BeginRequest(Object source, EventArgs e)
{
HttpApplication application = (HttpApplication)source;
HttpContext context = application.Context;
string filePath = context.Request.FilePath;
//TODO:判断URL,context.Request.Url
}
#1
httpmodule将截获所有http请求,你可以根据请求的url来判断
#2
你还需要在配置文件中配置需要排除的文件或文件扩展名
#3
怎么配置?
#4
对,你说的正是我想要表达的,但是具体怎么实现?我不知道
#5
-_-你连httpmodule的作用都没搞清楚就拿来用。
来自MSDN的代码片段:
private void Application_BeginRequest(Object source, EventArgs e)
{
HttpApplication application = (HttpApplication)source;
HttpContext context = application.Context;
string filePath = context.Request.FilePath;
//TODO:判断URL,context.Request.Url
}
来自MSDN的代码片段:
private void Application_BeginRequest(Object source, EventArgs e)
{
HttpApplication application = (HttpApplication)source;
HttpContext context = application.Context;
string filePath = context.Request.FilePath;
//TODO:判断URL,context.Request.Url
}