IHttpModule如何拦接html请求
请问IHttpModule如何拦接html请求
IIS里配置过了,html请求处理由C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll执行
地址链接格式如下:
http://localhost:8080/News/5938f1b5aa4a494.html
http://localhost:8080/News/f0538be0760c4b6.html
http://localhost:8080/News/afa72cc873434bc.html
“News/”后面的字符都是数据库表里的主键外,加一个.html扩展名
我想通过IHttpModule把News后面的主键取出来,进行URL重写,
C# code:
public void Init(HttpApplication context)
{
context.BeginRequest += new EventHandler(context_BeginRequest);
}
void context_BeginRequest(object sender, EventArgs e)
{
HttpApplication application = (HttpApplication)sender;
HttpContext context = application.Context;
string strPath= context.Request.Path;
}
求高人指教
绑定 jf
坐在这里等高手来,学习学习,呵呵
相关问答:
我在mySql中有一字段可存html标签,比如说里面有a标签
但是我输入查询条件a的时候并不想查出这条记录,也就是说查询的时候不考虑标签,只考虑内容。
请问大家怎样解决?
可以再弄一个字段来保存过滤标签后的内容。 ......
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using Syst ......
我的问题如下:
我现在想拦截百度主页中“把百度设为主页”这个链接的点击事件,该链接的代码如下:
<a onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www. ......
如何实现:不论内容是否过多,还是很少,滚动条始终存在页面上!???
页面内容很少的时候为什么需要滚动条呢?
可用性!!
引用
如何实现:不论内容是否过多,还是很少,滚动条始终存在页面上!???
不是 ......