处理程序的目的是什么 [英] What is the purpose of Handler
本文介绍了处理程序的目的是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨.
处理程序(.ashx文件)的用途是什么?用途是什么?
我可以得到任何样品吗?
Thanks
解决方案
您通常会使用ASHX返回非HTML内容,动态生成的内容等.
这是CP上的一个图像处理程序示例:一个简单的图像处理程序 [ ^ ]
此处是来自Google的大量示例: ^ ]
您可以使用它进行重定向,但是现在ASP.NET中免费进行路由,因此没有必要重新发明轮子.
干杯.
阅读此 [ ^ ].
>
hi.
What is the purpose of Handler (.ashx files) and what is the use ?
can i get any sample ?
thanks
解决方案
You would typically use ASHX to return non-HTML content, dynamically generated content and the like.
Here''s an image handler example here on CP: A Simple Image Handler[^]
Here''s a ton of samples from Google: Handlers[^]
You could use it for redirection, but with routing now free in ASP.NET there''s no point in reinventing the wheel.
Cheers.
Read this[^].
这篇关于处理程序的目的是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文