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).
I'm writing you because I can't display on Firefox the drag cursor for drag&dropping webparts. Is it possible to make this function available on Firefox?
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 a highly complicated web site that is under source control and has a long history. I would like to migrate this website into a web application project but I do not want to lose the source control history. We use Visual Studio 2010 and Team Foundation Server (Currently 2005 tfs but we are in the process of upgrading to 2010).create a webapplication project and migrate the files from the web application into it without losing the source control connections?
I am using a Reorder list. I had a requirement that i have to drag a record from the reorder list to another control(may be list control or grid view). Is it possible like that?
Can the ImageButton Control be used to implement Drag&Drop? My Drag&Drop function means drag the image,and drop it to desktop as a file or other applications, for example, Office Word,Office Excel,etc. Can the ImageButton Control be used to implement it?
Is there a way to change the code inserted when you drag and drop a control on a form?For instance, the application I'm working on always has Display=Dynamic and CssClass="errormessage" in a field validator. Is there a way to get VS 2008 to use these defaults, and insert the code for them when I drag and drop a control onto the page?
Could you point me to a reference article on how to implement drag and drop within a treeview control using ASP.NET in C#? Is this best implemented with AJAX? I will be using an XMLDatasource. Also, I did not want to use any third party control at this point
I am trying to put a default image in an Image control in asp.net and it should show that particular image on the page when no other image is assigned or no image available in Database.
I know how to display an image in gridview from image path in database. Now, I want to display an image in an asp.net image control from image path in database. Can anyone point me to a tutorial? I haven't been able to find one that explains how to do it when I don't know what the image path will be. The images are in the root folder.
I'm still a basic user of ASP.NET and i'm trying to figure out how can i use the FileUpload control to give an uploaded image to the Image control.
The FileUpload control doesn't have an OnClick() event so when i hit Upload i don't know what happens with the uploaded file in the back.
what i'm trying to do is choose a file with the FileUpload control, preview it in the Image control and then save it in an SQL Server 2008 database in an "image" field.
I have a custom control which inherit from the Table class and in the constructor, it takes a an integer as an argument. There is no empty constructor.
Is there a way for the user to set that variable in the properties window after they drag the control onto a form.
I know some .NET controls, you can set the source for the parameter to different things like another control's property, QueryString using just the properties window.
Right now, I have to create the control dynamically. I read the query string and then created the object.
I have installed and reinstalled AjaxControlToolkit.Binary.NET35, added as reference too and still cannot add the controls to the form. Why is creating web forms so frustratring? I have no problems when I use the Extended Object controls.
Im using VS 2005 Pro , and install AjaxControlToolkit for VS2005 in seperate installation.it went fine, the toolbox shows ajax control (the update panel, scriptmanager, etc) . but when i drag and drop, it only shows these code
For my website I would like to create some functionality, that will give me possibility to Drag and drop Web User Controls on my site. I have many Web User Controls.. Like Calendar, News, Videos, Gallery. Those part of codes are inWeb User Controls.. I would like to move(with Drag and Drop) those web user controls around site. Example of what I mean is here: http://www.rtvslo.si/ To move boxes around, but in my case Web User Controls.
the project was not initially created using Ajax however, i now added the assemble"system.web.extensions" and copy the ddl to the bin folder. if i should manually add the code for the extenders they will work however, i am unable to drag and drop the extenders to a textbox or to a button or a pane
I'm using a reorderlist (Ajax Control Toolkit Release 4.1.40412.2) inside a scrolling div (class="reorderListDemo" style="overflow:scroll; height:225px; width:1300px; table-layout:fixed; text-align:left;"). When the height of the reorderlist is greater than the height of the div, the div will automatically have a vertical scrollbar. The problem is that when i scroll down to drag an item from the bottom of the reorderlist, the reorderlist does not work properly. The drag image and the drop target does not correspond to the item i want to move.I've attached a copy of my css file:
I set a reference to AjaxControlToolkit.dll and this added all of the toolkit's controls to my toolbar. I then tried to drag and drop one of the controls to my webform and nothing happened-no error message, no control added to the form. Double clicking the control also did nothing. The web site compiles with no errors, I also tried to bounce VS2008. I am running Developers Edition on Windows Server 2008.I was able to add a Script Manager control