拖放图像 [英] Drag and Drop image

查看:104
本文介绍了拖放图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友的


我的问题是如何将一个图像随机拖放到另一图像上.
在asp.net 2.0中.

hello friend''s


My question is how to drag and drop one image on another image randomly.
in asp.net 2.0.

推荐答案

这是什么意思?只有某人拖放某些东西.当然,这个人可以随机地行为,但是您不能对这个人进行编程.因此,要么是人类演员,要么是软件.
但是我想您想模拟这个人类演员.那是另一回事.但是由于人类演员正在使用浏览器,并且浏览器会将其动作转换为http请求,因此您无需处理asp.net部分.
您有两种方法:要么使用某些自动化工具(或Web浏览器组件)来模拟人类行为;要么使用某些自动化工具(或Web浏览器组件)来模拟人类行为.或者您尝试模拟浏览器.为此,您必须知道此图像拖放事件产生的HTTP通信量.在asp.net中,有一些很奇特的东西,例如viewstate和sessionstate,因此很难模拟浏览器.但是要知道发生了什么,例如使用像Fiddler这样的嗅探器.
What on earth do you mean by this? Only somebody drags and drops something. Of course, this somebody can behave randomly, but you can not program this somebody. So either there is a human actor or a software.
But I suppose you want to simulate this human actor. That''s an other thing. But since the human actor is using a browser, and a browser will translate it''s actions into http requests, you don''t need to deal with the asp.net part.
You have two approaches: either you use some automation tools (or the webbrowser component) to simulate human action; or you try to simulate the browser. To do that, you have to know what http traffic is generated by this image drag''n''drop thing. In asp.net there are fancy things like viewstate and sessionstate, thus it can be difficult to simulate the browser. But to know what''s happening, use a sniffer like Fiddler, for example.


这篇关于拖放图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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