Click here to Skip to main content
16,022,752 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more: (untagged)
i have to position controls on web page dynamically using drag drop. i do it with the use of ajax dragdrop control. but there is a problem when page is posted back all the controls are repositioned to top left corner(0,0 position). is there any way to maintain position of controls on postback or set postion of controls like we do in windows .net. please reply.
thanks and regards
Posted

1 solution

You have to maintain the position during partial postback. For that we need to use Sys.WebForms.PageRequestManager Class . It has two eevents beginRequest and endRequest . During those event you have to trap the dragged position and then set the position again.
Here, I have done a similar application with gridview, for maintaining scroll position during partial postback.
Maintain GridView Scroll Position and Header Inside Update Panel[^]

Hope this will help you :-D

 
Share this answer
 


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900