?
Solved

Save jQuery draggable in Session Variable

Posted on 2012-08-28
4
Medium Priority
?
628 Views
Last Modified: 2012-08-30
I received a link to J-Query Draggable from CodeCruiser...many thanks!

Is there a way to save the position in a Session Variable for storage and use later?

I want my users to be able to save their "Dash Board" and see the same dashboard on page load.
0
Comment
Question by:lrbrister
  • 2
  • 2
4 Comments
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 2000 total points
ID: 38342019
There are few ways to achieve this,

You can maintain the positions on client side in hidden controls and then save on server side on postback.

Or you can use page methods to save the position in real time from JavaScript

http://www.dotnetcurry.com/ShowArticle.aspx?ID=109

http://encosia.com/using-jquery-to-directly-call-aspnet-ajax-page-methods/
0
 

Author Comment

by:lrbrister
ID: 38342047
CodeCruiser

You have a suggestion?
Seems to me that the first one is closest to what I was asking?  Would that be the dotnetcurry link?
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 38342232
No both links are about page methods. What if there is no post back and user just closes the browser after dragging and dropping controls? Or do you have a save button?

See example at bottom of this page

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.hiddenfield.aspx
0
 

Author Closing Comment

by:lrbrister
ID: 38351821
Thanks
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question