Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Example Method for Drag and Drop in ASP.NET

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 07-07-2009
Member
 
Join Date: May 2009
Posts: 9
Example Method for Drag and Drop in ASP.NET
  

Hello everyone, Hello, I want to learn the drag and drop implemention in Asp.net I trying to make drag and drop on asp.net but cannot Do so , I wanted to develop an application that should allow you classify photos via a drag and drop in ASP.NET. ,So Can you Tell me what tools should i used and what method should i use to implement to drag and Drop in Asp.net , please Help me Thanks in advance

Reply With Quote
  #2  
Old 07-07-2009
Member
 
Join Date: May 2008
Posts: 3,524
Re: Example Method for Drag and Drop in ASP.NET

Try with Javascript instead

Quote:
<html>
<head>

<script type="text/javascript">

//------------------------------------------------ ----------
/ /
/ / Function drag & drop
/ /
//------------------------------------------------ ----------
var drag;
var resizing;
var dragfromdive;
var controlx;
var controly;


drag function (object) (
dragfromdive = document.getElementById (object);
controlx = event.x + document.body.scrollLeft - dragfromdive.offsetLeft;
controly = event.y + document.body.scrollTop - dragfromdive.offsetTop;
dragfromdive.style.zIndex = 1999;
drag = true

function drop () (
if (drag == true)
(
dragfromdive.style.zIndex = 0;
drag = false;
dragfromdive = "";
offset = 0;
)
)

function move ()
(If (drag == true)
(
dragfromdive.style.left = (event.x + document.body.scrollLeft) - controlx;
dragfromdive.style.top = (document.body.scrollTop + event.y) - controly;
)
)

</ script>

</ head>
<body onmouseup="drop()" onmousemove="move()">

<div id="divtest01" onmousedown="drag('divtest01')" style="position:absolute;">
<table bgcolor="red" width=45px height=45px>
<tr> <td> </ td> </ tr>
</ table>
</ div>
</ body>
</ html>
Reply With Quote
  #3  
Old 07-07-2009
Member
 
Join Date: Apr 2008
Posts: 3,344
Re: Example Method for Drag and Drop in ASP.NET

Most of the JavaScript has been bundled into a reusable package called the ToolMan DHTML Library which you can download and use for free.
Reply With Quote
  #4  
Old 07-07-2009
Member
 
Join Date: Nov 2005
Posts: 1,323
Re: Example Method for Drag and Drop in ASP.NET

AJAX has revolutionized Web user interfaces, and ASP.NET AJAX has made AJAX available to the Visual Studio users. It comes in three separate downloads: ASP.NET AJAX Extensions (asp.net/ajax/downloads), which provides the core, fully tested set of AJAX functionality; ASP.NET AJAX Futures (asp.net/downloads/futures), which contains experimental features on which the product group wants feedback; and the ASP.NET AJAX Control Toolkit (asp.net/ajax/ajaxcontroltoolkit/samples), which provides a grab bag of AJAX controls as well as an SDK for building controls of your own.

check this link form more information
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Example Method for Drag and Drop in ASP.NET"
Thread Thread Starter Forum Replies Last Post
Drag an drop on htc hd2 home screen Sindu Portable Devices 5 09-06-2010 06:35 AM
Drag and drop transcoding in windows 7 Susquehannock Windows Software 6 04-06-2010 12:30 AM
What happens when you drag and drop a file on top of a vbscript Dharmavira Software Development 2 01-06-2009 10:00 PM
Drag & Drop PictureBox Suzane Software Development 2 01-05-2009 01:48 PM
CMD drag and drop in Windows 7 Justvicks Operating Systems 2 20-03-2009 06:36 PM


All times are GMT +5.5. The time now is 09:25 PM.