nemo Posted October 11, 2006 Share Posted October 11, 2006 Hi,I have form should be devided into two parts one of them has pictures and the other is picturebox . How can I draganddrop the pictures to the picturebix area. Also It could be more than one picture dropped . i don't want to override the old oneThanks Link to comment Share on other sites More sharing options...
jesh Posted October 11, 2006 Share Posted October 11, 2006 As far as I know, the only way you're going to be able to accomplish this is to use client-side code (e.g. javascript) to write a bunch of event handlers (onmousedown, onmousemove, onmouseup, etc.).Try this for a start: http://www.codeproject.com/aspnet/drag_drop.aspThis Google search may help too.The only other advice I can offer is that you write a hidden input value with the names/ids of the images that get dropped into your box so that when you submit the form, your codebehind will know which images were placed in the box.Good luck! Link to comment Share on other sites More sharing options...
aspnetguy Posted October 11, 2006 Share Posted October 11, 2006 As far as I know, the only way you're going to be able to accomplish this is to use client-side code (e.g. javascript) to write a bunch of event handlers (onmousedown, onmousemove, onmouseup, etc.).Try this for a start: http://www.codeproject.com/aspnet/drag_drop.aspThis Google search may help too.The only other advice I can offer is that you write a hidden input value with the names/ids of the images that get dropped into your box so that when you submit the form, your codebehind will know which images were placed in the box.Good luck!this is true...all ASP.Net controls in the end boil down to rendered HTML and JavaScript code. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now