简体   繁体   中英

Is it possible to use asp.net web controls in ashx page?

是否可以在.ashx页面中使用asp:Chart控件(或任何asp.net Web控件)?

No. .ashx is not a page, but a handler. You don't need to put the chart control in a page to work with it. It's still just an object you can instantiate. You can create the chart control in the .ashx code and then save the results of your chart operations to the output of the .ashx.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM