Why technically does ScrewTurn uses .ashx to create wiki page?
Why ScrewTurn Wiki does use ashx type to create wiki page? Isn't it dangerous to create asp.net page on the fly?
update: t开发者_C百科hey didn't create any physical pages. But how do they do that because the url is actually some-newpage.ashx ?
Does it actually really craete pages on the fiy on disc?
An ashx is a handler. It returns output as it wants. You can have a CMS that exposes it's tree thruogh a .ashx in between (/cms.ashx/some/page) but the pages NEVER EXIST.
I think it uses the .ashx
to 1.) trigger the use of the ASP.NET isapi filter and 2.) signal that the requests aren't mapped to any physical files, but URLs mapped to logical pages within the Wiki engine.
And I don't think it's dangerous to create ASP.NET page responses on the fly, which is essentially what they do. It's actually a quite brilliant way to let you, the user of the system, build up the hierarchy of the web site.
精彩评论