Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hello Fellows,
 
i am working on a asp.net page , which has a Two Div's .
 
<div>
 
<div id="div1"> Move items from here to div2  
 
  <asp:DropDownList ID="DDEducationInfo" runat="server" Width="220px">
  <asp:ListItem Selected="True">Select educaiton info ...</asp:ListItem>
  <asp:ListItem>Provisional Certificate</asp:ListItem>
  <asp:ListItem> Permanent</asp:ListItem>
  <asp:ListItem>occupational</asp:ListItem>
  <asp:ListItem>professional</asp:ListItem>
  </asp:DropDownList>
 <asp:ImageButton ID="IBCertificaiton" runat="server" ImageUrl="Images/ui/add.png"  />
 <hr />
 <p style="text-align: center;"> OR </p>
 <hr />
</div>
 
<div id="div2"> get items from div1</div>
 
</div>
 
1) I need to be able to select an item from Drop list on "DIV1" , and when i click Button "ADD" on "DIV1" , it should add selected item to "Div2" (like copy and paste)
 

2) Second question is more tricky ... I am working with OR Operator , such as on my DIV2 between selected item i want to add Or operator . like this
 
Permanent
occupational
Or
professional
 
3) I want my OR to be drag-able from DIV1 to DIV2 on any place.
 
4) Most tricky part : when i add OR operator between Item1 OR Item2 , it should act like that which mean i can have Item1 Or i can have Item2 . Plus i need to know from code behind what two or more items has OR in between .
 
Thanks in advance guys. If you need more clarification let me know .
Posted 28-Nov-12 6:46am
Edited 29-Nov-12 4:47am
v3

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

This CP article did what you just asked for.
 
Drag and Drop with Persistence using JQuery[^]
  Permalink  
Comments
anjumnavid at 5-Dec-12 9:24am
   
Thanks for the article but my project is different than what article explain.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 DamithSL 495
1 Maciej Los 258
2 OriginalGriff 229
3 BillWoodruff 170
4 Zoltán Zörgő 165
0 OriginalGriff 7,934
1 DamithSL 6,084
2 Sergey Alexandrovich Kryukov 5,449
3 Maciej Los 5,174
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 29 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100