使用了KindEditor控件來錄入信息,一直以來都用的好好的!但是今天把網站設置成了僞靜態KindEditor的圖片上傳等HTML網頁就顯示不出來了。
經過努力尋找,終於找到了解決方法
在web.config的<compilation debug="true"> 加入下面這句話:
- <compilation debug="true">
- <buildProviders>
- <add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
- </buildProviders>
- </compilation>
然後在</compilation>下加入
- <httpHandlers>
- <add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory"/>
- </httpHandlers>
完整就是:
- <compilation debug="true">
- <buildProviders>
- <add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
- </buildProviders>
- </compilation>
- <httpHandlers>
- <add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory"/>
- </httpHandlers>