I am using the below code to rotate the drag/dropped image.The rotation is working fine,but when i start rotating ,the image moves outside the "div" container .Anything i am missing.
//Moving outside the container for first time.After dragging inside the div,then rotates inside the div
I have already asked this same questions but for different problem.I have to rotate a droped clone image.The problem is rotation is working,but its not rotating at the same place,its moving to corner of my page / somtimes to the corner of Panel.
I have an asp.net 2010 project. I write a jpg to the filesystem. Then I display it in an Image control. Then I use this code on button click to allow the user to rotate it 90 degrees.
string path = Server.MapPath(Image1.ImageUrl) ; // creating image from the image url System.Drawing.Image i = System.Drawing.Image.FromFile(path); // rotate Image 90' Degree i.RotateFlip(RotateFlipType.Rotate90FlipXY); // save it to its actual path i.Save(path); // release Image File i.Dispose();
It does rotate (I can actually watch that happen in Windows Explorer). But when I run the app again and it grabs the file from its path, it still displays it in its original form.
I want to rotate an image with asp.net. I used TranslateTransform and RotateTransform. After rotation, the image is damaged. How can I solve this problem?
I have to flip or rotate images in listview itemtemplateI will catch the image id by commandargument and get imageid, and rotate it and save it back in original placei tested roate image coding , it worked perfectly. but when i combine with listview and doesnt work.
I have a link button in a repeater control. the li element is drag and droppable using jquery. when the page loads the the link button works perfectly, the jquery that is attached and the server side code both execute. when I perform a drag and drop then click on the link button it doesnt not fire. when i click it a second time it does fire. If i perform 2 or drag and drops in a row the link button doesnt fire a as many drag adn drops as i before it will fire. for example if if perform 3 drag and drops then it will take about 3 click before the events are fired.
My scenario is to drag an item from a repeater/datalist to another repeater(preview repeater). The preview repeater already contains some icons in some positon(for eg. in 1st and 4th items). I need to insert the icon to empty positions(2nd, 3rd and 5th items) in preview repeater.
I'm building a website for a friend where some pictures need to be uploaded. The pictures need to get a watermark on them automatically after uploading (to prevent other people using them as their own), but the watermark placement cannot be 'static'; if I put it in the same place on each picture then it will obscure too much of the content in some pictures.
So I want to enable my friend to choose the location of the watermark (possibly even the size, but that's not really important at the moment) for each picture individually.
At the moment I just have a page with a FileUpload control that allows my friend to pick the image. It is uploaded when the OK button is pressed and the URL to the image is stored in a database. That's basically it.
Now I was thinking to make another page after the upload page where you can see the image you just uploaded and can drag a picture of the watermark (which will be a transparent PNG image, possibly GIF if PNG is not possible) around to place it. Once placed, the user could click an OK button and the watermark is copied onto the image.
So what I need is a way to drag an image (the watermark) over another image (the picture), as well as the possibility to retrieve the location of the watermark image (relative to the picture image) afterwards (so I can draw it onto the picture using GDI+).
Is there anything that allows me to do this? When I search for stuff related to dragging images all I find is drag and drop samples, where you take an arbitrary image file and drag it into the browser. That's not what I want; the watermark is always going to be the same image, and it will be on the image by default (in the center or something). The user should be able to move it (possibly outside the boundary of the image to completely hide it) but never completely remove it from the image and drag it somewhere else (no drag drop).
For our next project (a small app in ASP.NET/C#) we have to create drag and drop zones in the UI so that components/widgets can be dragged and dropped and layouts can be changed dynamically (for example, the user should be able to switch between two-column to a three-column layout from the front end). After doing some searching, I got to know that there are two approaches: Use Web parts and Content-zones. Using jQuery.
I also learnt that jQuery approach is preffered, but I would like to know how can I create such zones in my application and also save these zones per user (in the D so that when the new request comes for that user their preferred layout is displayed? I basically want to know if there are some tutorials on creating persistable drag and drop zones using jQuery.
his function takes an li element and adds it to another ul element. After this code is fired the jquery events attached to the children spans of the li element do not fire the first time they are clicked.
I want to perform drag and drop operation on video file ,in which i want to make video carosual for all video and drag the video to the main player and play on main player.
I want to make content switch say there are 3 items.. Item 1, Item2, Item3 in datalist and if i drag Item 1 to item 3, the content will interchange..."item 3" will go to "item 1" and "item 1" to "item 3" What code do i write in drop function. Here is my code. Is this even possible?
I need to develope interface something like IGoogle with drag and drop of boxes in ASP.Net 2.0. The interface should support cross browser compatibility.
I would like to ask we select a file in our system and drag that file into browser, drop that file into particular location of the browser at that time the file is to upload.
I require a drag and drop functionality between a ASP.NET grid view and a details view. I used jQuery draggable and droppable functionality to drag a row from gridview based on css class and added it to a second grid view. But now I want to drag single row of grid view and manipulate its contents to display it in details view. I have pasted my existing jQuery script that allows me to drag a column from one gridview and paste it to another of the same structure,