编辑:说三道四文库 发布时间:2018-04-21 04:09
HTML文档下载
WORD文档下载
PDF文档下载
由于要绘制复杂的矢量图形,出于性能考虑打算在客户端绘图,同时又需要与服务器进行交互,如何实现这种控件?
或者在web自定义控件中调用GDI+或者把windows控件放到webform上。两者都很难实现,请高手指教!
关注 帮你顶
>>>同时又需要与服务器进行交互,
what kind of 交互?
write a windows forms control and use HttpWebRequest/HttpWebResponse class in System.Net or Socket class in System.Net.Sockets or use webservice to interact with the server
但是又想做成瘦客户的,所以最好不用windows forms
关键是如何在asp.net自定义服务器控件中调用GDI+,以及自定义服务器控件能否响应paint事件?
>>>关键是如何在asp.net自定义服务器控件中调用GDI+,
yes, you can create images on the fly, but it is done on the server side, not on the client side, see
Create Snazzy Web Charts and Graphics On the Fly with the .NET Framework
http://msdn.microsoft.com/msdnmag/issues/02/02/ASPDraw/default.aspx
>>>自定义服务器控件能否响应paint事件?
no way
非常感谢saucer帮助,上述文章对我很有用
另外,我觉得可以通过响应ASP.NET 服务器控件中的客户端事件
来调用客户端脚本,
asp.net中客户端脚本支持GDI+吧!