问题描述
当你使用ASHX在asp.net web应用程序的文件吗?可以有人用简单的术语与例如之实践解释?我从.ashx的文件实现IHttpHandler的,但我不能从这里http://msdn.microsoft.com/en-us/library/system.web.ihttphandler.aspx,能有人给我解释清楚?
When do you use ashx files in asp.net web application ? Can some one explain in simple terminology with a pratical example ? I understood from the msdn that .ashx files implements ihttphandler but i could not get much explanation from here http://msdn.microsoft.com/en-us/library/system.web.ihttphandler.aspx, Can some one explain it clearly for me?
谢谢期待
PS:如果有人不喜欢这个问题,你可能会删除得到回答,而不是向下投票或标记后这个问题。
PS: If some one doesn't like this question you may delete this question after getting answered rather than down voting or flagging it.
推荐答案
在短,文件ashx的是一个ASPX文件,减去所有管道ASP.NET表单。
In short, a file ashx is an ASPX file, minus all plumbing ASP.NET webform.
我使用ASPX来生成动态的PDF文件,并进行下载。
同样,我用它们来快速生成缩略图和下载。
I am using ASPX to generate PDF files on the fly, and download them.Similarly, I use them to generate thumbnails on the fly and download them.
这可以用一个空白ASPX工作得很好,但是ASHX文件要少得多的资源消耗。
This could work very well with a blank ASPX, but ASHX files are much less resource-consuming.
看看怎么看这些文件的ashx。
Take a look at this tutorial to see how the files ashx.
这篇关于在asp.net ashx的文件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!