Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Allow Drop and ASP .NET

Allow Drop and ASP .NET

Scheduled Pinned Locked Moved ASP.NET
csharphelptutorial
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    ccotton333
    wrote on last edited by
    #1

    Hey everyone i was wondering. I know in VB .NET if you set the forms allowdrop property to true then you can drag and drop items onto a windows form in runtime. I was wondering if there was a way to drag and drop a control(like a panel) on a webpage during runtime. I figure there is bound to be a way to do this, but I can't seem to find any documentation on this. I have tried to find a way to make it work, but I have been unsucessful. If anyone knows how to do this or has any ideas on what i need to do to get this to work, If you would please let me know. Thanks for everyone's help, ccotton333

    J J 2 Replies Last reply
    0
    • C ccotton333

      Hey everyone i was wondering. I know in VB .NET if you set the forms allowdrop property to true then you can drag and drop items onto a windows form in runtime. I was wondering if there was a way to drag and drop a control(like a panel) on a webpage during runtime. I figure there is bound to be a way to do this, but I can't seem to find any documentation on this. I have tried to find a way to make it work, but I have been unsucessful. If anyone knows how to do this or has any ideas on what i need to do to get this to work, If you would please let me know. Thanks for everyone's help, ccotton333

      J Offline
      J Offline
      Jeff Martin
      wrote on last edited by
      #2

      Why does everyone want to turn web apps into Windows apps? It's possible, Microsoft does it in SharePoint. How do they do it? I don't really know, but I bet it's more complicated than a forum post could answer.

      1 Reply Last reply
      0
      • C ccotton333

        Hey everyone i was wondering. I know in VB .NET if you set the forms allowdrop property to true then you can drag and drop items onto a windows form in runtime. I was wondering if there was a way to drag and drop a control(like a panel) on a webpage during runtime. I figure there is bound to be a way to do this, but I can't seem to find any documentation on this. I have tried to find a way to make it work, but I have been unsucessful. If anyone knows how to do this or has any ideas on what i need to do to get this to work, If you would please let me know. Thanks for everyone's help, ccotton333

        J Offline
        J Offline
        Javier Lozano
        wrote on last edited by
        #3

        Jeff has a good point. However, it can be done. Check out this CP article: http://www.codeproject.com/aspnet/drag_drop.asp[^] ~Javier Lozano

        C 1 Reply Last reply
        0
        • J Javier Lozano

          Jeff has a good point. However, it can be done. Check out this CP article: http://www.codeproject.com/aspnet/drag_drop.asp[^] ~Javier Lozano

          C Offline
          C Offline
          ccotton333
          wrote on last edited by
          #4

          Hey guys thanks for the posts. I figured out how to make the panel object moveable by using a javascript. The problem I am having now is that i need to find a way to say the coordinates after the dragging is complete so i can use the coordinates to make the page display like that the next time it is loaded. I'm sure i could use a cookie or something to make it pull the information from so it is displayed properly. Anyone have any idea as to how to get this information and the best way to store it i would appreciate it. Thanks for all you guys' help, ccotton333

          J 1 Reply Last reply
          0
          • C ccotton333

            Hey guys thanks for the posts. I figured out how to make the panel object moveable by using a javascript. The problem I am having now is that i need to find a way to say the coordinates after the dragging is complete so i can use the coordinates to make the page display like that the next time it is loaded. I'm sure i could use a cookie or something to make it pull the information from so it is displayed properly. Anyone have any idea as to how to get this information and the best way to store it i would appreciate it. Thanks for all you guys' help, ccotton333

            J Offline
            J Offline
            Javier Lozano
            wrote on last edited by
            #5

            I'm not sure about getting the coordinate information. I don't think javascript allows for that type of mouse support. However, instead of using cookies, use hidden fields to store the coordinates and a "session" id. Reason? The user might have cookies disabled. ~Javier Lozano

            C 1 Reply Last reply
            0
            • J Javier Lozano

              I'm not sure about getting the coordinate information. I don't think javascript allows for that type of mouse support. However, instead of using cookies, use hidden fields to store the coordinates and a "session" id. Reason? The user might have cookies disabled. ~Javier Lozano

              C Offline
              C Offline
              ccotton333
              wrote on last edited by
              #6

              Thanks for the quick reply to my problem. I think you are right that is a very good idea/reason. Thanks for your help, ccotton333

              C 1 Reply Last reply
              0
              • C ccotton333

                Thanks for the quick reply to my problem. I think you are right that is a very good idea/reason. Thanks for your help, ccotton333

                C Offline
                C Offline
                ccotton333
                wrote on last edited by
                #7

                Sorry I read that wrong. I don't need the mouse coordinates; I need the coordinates of the panel after it has been moved from its default location. Do you have any ideas on how this might can be achieved? Thanks, ccotton333

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups