public
void
Init(HttpApplication context)
{
context.BeginRequest +=
new
EventHandler(context_BeginRequest);
context.EndRequest +=
EventHandler(context_EndRequest);
}
context_EndRequest(
object
sender, EventArgs e)
if
(HttpContext.Current.Response.IsRequestBeingRedirected)
HttpContext.Current.Response.RedirectLocation = Encrypt(HttpContext.Current.Response.RedirectLocation);
HttpContext.Current.Response.ClearContent();
context_BeginRequest(
(HttpContext.Current.Request.Url.ToString().Contains(
"?value"
))
HttpContext.Current.RewritePath(Decrypt(HttpContext.Current.Request.Url.ToString()));
else
"?"
throw
HttpException(
"Not Valid Request"
);
Form.Action = QuertStringModule.Encrypt(Request.Url.ToString());
<
httpModules
>
add
name
=
"QuertStringModule"
type
/>
….
</
Good article