Posted on: 4/7/2014 7:05:11 AM | Views : 293

hi 
during pageload i will create few labels,dragpanel and hiddenfields,
after user drag the label, the new locations will be saved to the hiddenfields in javascript,
but after postback, page reload and recreate all controls,and my values are gone. how can i retain values created from javascript.

function Position() { debugger $find(dragBehaviorID).add_move(savePanelPosition); var locHidden = $get(LocHiddenClient) if (locHidden == null) { return; } if (locHidden.value != "") { var temp = new Array(); temp = locHidden.value.split(';'); // set the position of the panel manually with the retrieve value $find(dragBehaviorID).set_location(new Sys.UI.Point(parseInt(temp[0]), parseInt(temp[1]))); } } function savePanelPosition() { ...

Go to the complete details ...