Achieve Drag And Drop Folder To Some Region Or Area In C#?
May 31, 2010I want o upload the folder to server. for that when user drag and drop the folder the i will get the path at that time ui will zip it uploadedd to the folder.
View 1 RepliesI want o upload the folder to server. for that when user drag and drop the folder the i will get the path at that time ui will zip it uploadedd to the folder.
View 1 RepliesI want to build my navigation so I can use it on multiple views. How do I do this? Nested views? Whats the best practice and show me a quick example?
View 1 RepliesOk so the story is my users need a multi-select dropdownlist, which doesn't exist in ASP.NET, so the simple solution I'm going with is I'm using listboxes with multiselect on and I start them off at size 1, and onmouseover I change the size to say 10, onmouseout sets it back to one. Simple enough and the users don't know the difference.
Now, my issue comes from the fact that since I have any number of controls on my web app, I've set these listboxes to higher z-index numbers than the other controls, which creates a problem: on my listboxes closer to the bottom of the page the list expands below and not above, and part of the listbox goes under the bottom of the page but since onmouseout resets the size of the listbox I can't scroll the page down.
Does anybody know what I need to set to make it expand up instead of down?
edit Also, some may ask "why don't you just rearrange the listbox to a higher position in the page," the reason this isn't a viable option is I have well over 40 controls on the page and it they're grouped cohesively, I didn't just randomly place them where they are.(ie. investment info in one section, account in another, suitability in another)
I'm using the asp.net menu control. It's working great, but I'm trying to figure out how to make the area around the text in the menu clickable? You see, some words in the menu are much longer than others, and I don't like it that the user has to move their mouse to the left to be able to click on the word in the menu just because it is shorter. Is there a way to make the entire menu item clickable? My menus are across the top of the page Left to Right, and then they drop down. And it's in that dropdown menu that the text length varies.
View 3 RepliesI want to implement some drag and drop behaviors in my ASP.NET app. Could someone point me in the right direction for some articles and samples? For example, one example of drag and drop I want to implement is for sorting things.
View 4 RepliesI currently have two listboxes and I use arrow buttons to move items from one list to another. Is there a way I could implement drag and dropping between those 2 listboxes.
View 3 Repliesi've built a WPF application with two listBoxes.I managed to drag and drop elements from one listbox to the other, but it always gets added to the end/buttom of the second listbox.How can i drag and drop the element and place it in the other listbox, but where i want it to be, where the cursor is located/ponits and not in the end (as the last element).
View 1 RepliesIn WPF I have a textBox . I need to drag and drop textfiles ie in notepad from desk top to textbox of wpf. I managed to get the contents of notepad to textbox. But I need file path to be in browser so that I can transfer files from client to client.
I need the file path instead.
privatevoid textBox1_PreviewDragEnter(object sender, DragEventArgse) {
bool isCorrect = true;
if (e.Data.GetDataPresent(DataFormats.FileDrop, true) == true
) {
string[] filenames = (string[])e.Data.GetData(DataFormats.FileDrop, true
);
[Code] ....
Anyone who can give me a tip on articles explaining how I can implement a drag n drop functionality between two asp controls? I'm using Asp.net 3.5.
View 1 RepliesI cannot get the Drag and Drop functionality of Web Parts is to work. I have a very simple test page with two WebPartZones.. In the OnInit method of the code behind I put the page in design mode. In the first zone I have a textbox.At runtime the text box renders as a web part. When I hover over the web part header my mouse pointer changes the 'move' pointer, but I cannot drag the item. I do not see it dragging and the part never moved. I am using Visual Studio 2010 with IE 8. I have tried IE8 in compatibility mode and regular mode. The results are the same. Here is the markup from my test page:
<form id="form1" runat="server">
<div>
<asp:WebPartManager ID="WebPartManager1" runat="server">
</asp:WebPartManager>
<asp:WebPartZone ID="LEFT" runat="server">
<ZoneTemplate>
<asp:TextBox ID="tb" runat="server" />
</ZoneTemplate>
</asp:WebPartZone>
aa
<asp:WebPartZone ID="RIGHT" runat="server">
</asp:WebPartZone>
aa
<asp:EditorZone ID="EditorZone1" runat="server">
</asp:EditorZone>
</div>
</form>
Here is the code behind:
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
WebPartManager mgr = WebPartManager.GetCurrentWebPartManager(this);
mgr.DisplayMode = WebPartManager.DesignDisplayMode;
}
What am I missing?
I hav two listboxes, how can i drag and drop between these two using jquery
View 4 RepliesI have to generate an organization chart, in my asp.net application and it should supports drag and drop feature to update the linkage between organization structure. What would be the best way to deal with it, (jQuery or silver light or .net chart controls). My primary needs is to support drag and drop.
View 4 RepliesFor 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.
I have a listview showing images like ImageViewer and I want to implement Drag-Drop behavior within ListView. how can i achieve the Srag-Drop inside the below kind of customized ListView.
<asp:ListView ID="lvPhotoViewer" runat="server" GroupItemCount="3" InsertItemPosition="LastItem">
<LayoutTemplate>
<table id="groupPlaceholderContainer" runat="server" border="1">
<tr id="groupPlaceholder" runat="server">
</tr>
</table>
</LayoutTemplate>
<ItemTemplate>
<td id="Td4" align="center" style="background-color: #eeeeee;">
<asp:Image runat="server" ID="imPhoto" Height="100px" Width="100px" ImageUrl='<%# "~"+Eval("PhotoUrl") %>' />
<br />
<asp:Label ID="DefaultPhotIDLabel" runat="server" Text='<%# Eval("PhotoName") %>' />
</td>
</ItemTemplate>
<GroupTemplate>
<tr id="itemPlaceholderContainer" runat="server">
<td id="itemPlaceholder" runat="server">
</td>
</tr>
</GroupTemplate>
<InsertItemTemplate>
<td id="Td3" width="150px" height="150px" runat="server" align="center" style="background-color: #e8e8e8;
color: #333333;">
<asp:FileUpload ID="fileUpload" runat="server" />
</td>
</InsertItemTemplate>
</asp:ListView>
Code Behind:
public class ImageEntity
{
public string PhotoName { get; set; }
public int PhotoIndex { get; set; }
public string PhotoURL { get; set; }
}
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
IList<ImageEntity> imagesList = new List<ImageEntity>()
{
new ImageEntity(){ PhotoName="House1", PhotoIndex=1, PhotoURL= @"ImagesHouse-01.JPG" },
new ImageEntity(){ PhotoName="House2", PhotoIndex=2, PhotoURL= @"ImagesHouse-05.JPG" },
new ImageEntity(){ PhotoName="House3", PhotoIndex=3, PhotoURL= @"Imageshouse.jpg" },
new ImageEntity(){ PhotoName="House4", PhotoIndex=4, PhotoURL= @"Imageshouse2.jpg" }
};
lvPhotoViewer.DataSource = imagesList;
lvPhotoViewer.DataBind();
}
}
I have two reorder lists on my page and what I am trying to do is allow my users to drag from one list to another list.
Basically its a priority list so list one is high and list two is low and the user can move them between the two.
Now they will work independantly but I can't change them from one list to another.
How can i drag and drop image from panel to DataGridView?
View 5 RepliesI had populated data in TreeView control. How will I drag a particular child node from a parent node and drop the dragged one to a DIV or any portion, using JQUERY ? I know in jquery, there are methods "draggable" and "droppable" to make this possible. But I want to drag a particular child node and drop it.
Or atleast How to fetch the text/id of a particular child node using jquery ? I hope I can drag,if I can fetch the child node
I am looking for a drag & drop shopping cart, which I can use with asp.net & can save the details in sql server 2005 database. I don't bother if it from ajax, javascript or jquery.Actually I have a grid, in which I am having picture, product name & price (say), so either I could be able to drag the row to the cart to add or increase the product quantity. or on click on the add to cart button, it will flow to the shopping cart.
View 10 RepliesI have a repeater that's bound to a SQL Data Source (using ASP.NET). Are there any JQuery plugins/efficient way of converting my repeater into something that can be sorted via drag and drop? i.e. users can rearrange the order of the data, which updates the database?
View 2 RepliesI came across this example [URL] I want to create a form that will be validated when Submitted. In the above example you can keep on dragging colored boxed on the Drop It Here area. When a form is submitted, I want to validate Drop It Here area to see if it is empty or user drop a colored box here. Is this possible to do and if so, how to do it. I tried regular validation coltrols and they didn't seem to work.
View 1 RepliesI have a small doubt.Can we provide Drag and Drop facility in asp.net websites like in desktop applications.
If possible how can we provide that facility in our asp.net web sites
i'm getting an error. .js files are not present in my application folder. am i need to copy those .js files to my applikation folder?
View 7 RepliesHow can I do Gmail like drag and drop attachment upload with asp.net and jQuery? If that's not possible with current HTML version or the platforms I mentioned do we have any other alternative?
View 1 RepliesI have been using web parts on my site since ASP.NET 2.0 came out. Dragging and dropping web parts works great in Internet Explorer, but it doesn't work at all in Firefox, Chrome, or Safari. I recently upgraded the site to ASP.NET 3.5 SP1, but I am still unable to drag and drop web parts in non-IE browsers. How can I enable drag and drop web parts in these other browsers? Update (2/9/2010): This mentions this problem, but offers no solution: [URL] pdate (2/19/2010):
These posts offer a possible solution, but I have been unable to get it working yet on my site: [URL] In short, these say the drag and drop problem was solved in "ASP.NET Futures (July 2007 release)" but for some crazy reason, was left out of ASP.NET 3.5 SP1. So to solve, you have to download the Futures release at:
http [URL] Then, you need to use the WebPartManager and WebPartZone from the Microsoft.Web.Preview.UI.Controls.WebParts namespace.
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.
View 1 Replies