title: Redirect to an action from Application_BeginRequest in global.asax
body: <p>In my web application I am validating  the url from glabal.asax . I want to validate the url and need to redirect to an action if needed. I am using Application_BeginRequest to catch the request event.</p>
  
  <pre><code>  protected void Application_BeginRequest(object sender, EventArgs e)
      {
          // If the product is not registered then
          // redirect the user to product registraion page.
          if (Application[ApplicationVarInfo.ProductNotRegistered] != null)
          {
               //HOW TO REDIRECT TO ACTION (action=register,controller=product)
           }
       }
  </code></pre>
  
  <p>Or is there any other way to validate each url while getting requests in mvc and redirect to an action if needed</p>