Is there a way to rewrite url from a C# Class instead of putting all conditions in web.config file ?
I am not sure if this is possible or not but I want to manipulate my URL in OnBewginRequest Class, but not sure from whre can I find the event.
I tried to do following but its not making any sense.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Configuration;
using System.Data;
using Microsoft.CSharp;
namespace myApp.App_Code
{
public class UrlRewrite:IHttpModule
{
private void onBeginRequest(object sender, EventArgs e)
{
HttpApplication app = new HttpApplication();
}
}
}
...
Go to the complete details ...