Contents

URL Rewriting utilizzando un HTTPHandler con Asp.net

Contents

Sto facendo delle prova con HTTPHandler, vediamo se riesco a sistemare il codice: UrlRewriting.vb Imports System Imports System.IO Imports System.Web Imports System.Web.UI Public Class ContentUrlRewriting Implements IHttpHandlerFactory Public Function GetHandler(ByVal context As HttpContext, ByVal requestType As String, ByVal url As String, ByVal path As String) As IHttpHandler Implements IHttpHandlerFactory.GetHandler Dim pagina As String = context.Request.MapPath(“default.aspx”) Return PageParser.GetCompiledPageInstance(url, pagina, context) End Function Public Sub ReleaseHandler(ByVal handler As IHttpHandler) Implements IHttpHandlerFactory.ReleaseHandler End Sub End Class poi vediamo di sistemare anche l’url :D ed il web.config