也许我正在寻找错误的东西或试图以错误的方式实现这一点.我使用Generic Handler动态生成图像.我目前可以使用以下方式访问我
ImageHandler.ashx?width=x&height=y
Run Code Online (Sandbox Code Playgroud)
我更愿意使用类似的东西访问我的处理程序
images/width/height/imagehandler
Run Code Online (Sandbox Code Playgroud)
这可能是我在谷歌上找到的几个例子与MVC2不兼容.
干杯.