|
Thanks for your article but I faces a little problem although I understand your article well. I have a GetHandler function like: Public Overridable Function GetHandler(ByVal context As HttpContext, ByVal requestType As String, ByVal url As String, ByVal pathTranslated As String) As IHttpHandler Implements IHttpHandlerFactory.GetHandler context.Items("fileName") = Path.GetFileNameWithoutExtension(url).ToLower() Return PageParser.GetCompiledPageInstance(url, context.Server.MapPath("WebForm1.aspx"), context) End Function In my Web.Config file, I have something like: <httpHandlers> <add verb="*" path="~/content/*.aspx" type="WebApplication2.TestHttpHandlerFactory, WebApplication2" /> </httpHandlers> However, it displays a 404 error when I access http://localhost/WebApplication2/content/1.aspx I'd expect WebForm1.aspx to be loaded.. Should I create a HttpHandler/HttpModule even I implemented IHttpHandlerFactory interface? Thanks!
|