Custom file extensions for ASP.NET - help needed!

后端 未结 1 1087
没有蜡笔的小新
没有蜡笔的小新 2021-01-19 15:00

I\'ve got modaspdotnet working on my Apache 2.2 server, and as such it runs ASP.NET and MySQL pretty well.

However, what I\'d like to do is serve up content with oth

1条回答
  •  情话喂你
    2021-01-19 15:18

    Simple adding mime type is not enough - page is not interepreted but simply streamed to the browser. I don't know much about apache. But normally when you want to serve normal aspx page but with different extension you have to:

    1. Add your default aspx httphandler under custom extension like this:
     
    ...
     type="System.Web.UI.PageHandlerFactory"/>
    
    1. Register build provider:
    
          
               
          
    

    Try it out maybe this will point you in the right direction

    0 讨论(0)
提交回复
热议问题