"Ramesh Chawla" <ra*******@redi ffmail.com> wrote in message news:<EE******* *************** ************@mi crosoft.com>...
I want to implement drag a drop kind of functionality across frames using
ASP.NET(VC#). The scenario is like,
2)Now, what I would like is to load the data from some datatable into the
leftmost and rightmost frmaes, one record in each row, and the data should be
draggable from either frames to the middle frame.
Sure. This is doable, though neither ASP.NET nor C# will help you.
This is on the browser, so Javascript will be doing the work.
I've done exactly this before, so I'll give you a few pointers and one
healthy disclaimer: It's hard (as in, if you're not already good with
DHTML, you're in over your head.)
Basically, you have to make sure that all the frames are sourced on
the same server so they can see each other. Keep a reference to your
cargo on the top frame, so it's easy to see by the others. Have each
frame handle it's own mouse events and use those variables in the top
frame to hold any information that the other frames might need, such
as drag state and cargo.
The big fun is in keeping track of the MouseDown state. If the user
drags to someplace where you don't have an event handler running then
lets go of the button, you'll find yourself in perma-drag mode. For
this reason, I'd recommend using a mouseout event on the window that
cancels the drag.
Anyway, good luck!
Jason
http://www.expatsoftware.com/