如何使用(c#,asp.net)拖放任何特定形状的任何颜色,如三角形,圆形,rectengle等。 [英] how to drag and drop using (c#,asp.net)any color in any particular shape like triangle,circle,rectengle etc.

查看:87
本文介绍了如何使用(c#,asp.net)拖放任何特定形状的任何颜色,如三角形,圆形,rectengle等。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请现在回复.....先生。

对我开发我的大学项目很重要...............

please reply now.....sir.
its importent to me to develope my college project...............

推荐答案

如果你试图在ASP.NET中解决这个问题(意思是:在服务器部分),你将不得不执行如此频繁的回发,它将减慢操作太多。相反,您需要在客户端完成所有操作。我建议通过JavaScript使用HTML5画布:

http://en.wikipedia.org/wiki / HTML5_canvas [ ^ ],

http://www.w3.org/TR/2009 /WD-html5-20090825/the-canvas-element.html [ ^ ],

https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/SafariJSProgTopics/Tasks/Canvas.html [ ^ ],
http://dev.opera.com/articles/view/html-5-canvas-the-basics/ [ ^ ],

https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Canvas_tutorial?redirectlocale=en-US&redirectslug=Canvas_tutorial [ ^ ]。



请参阅交互式画布图形有多么令人印象深刻 http://net.tutsplus.com/articles/web-roundups/21-ridiculously-impressive-html5-canvas-experiments [< a href =http://net.tutsplus.com/articles/web-roundups/21-ridiculously-impressive-html5-canvas-experiments\"target =_ blanktitle =New Window> ^ ] 。



-SA
If you try to solve this problem in ASP.NET (meaning: on the server part), you will have to perform so frequent postbacks, that it will slow down operation too much. Rather, you need to do it all on client side. I would advise to use HTML5 canvas, via JavaScript:
http://en.wikipedia.org/wiki/HTML5_canvas[^],
http://www.w3.org/TR/2009/WD-html5-20090825/the-canvas-element.html[^],
https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/SafariJSProgTopics/Tasks/Canvas.html[^],
http://dev.opera.com/articles/view/html-5-canvas-the-basics/[^],
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Canvas_tutorial?redirectlocale=en-US&redirectslug=Canvas_tutorial[^].

Please see how impressive the interactive canvas graphics can be: http://net.tutsplus.com/articles/web-roundups/21-ridiculously-impressive-html5-canvas-experiments[^].

—SA


这篇关于如何使用(c#,asp.net)拖放任何特定形状的任何颜色,如三角形,圆形,rectengle等。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆