Hi all <BR><BR> I have a tree view control and i am loading the records on the tree view and when the user clicks on one record it displays the Information on the right side of the tree ,When the user changes any of the data and moves to another record on the tree ,I wanted the message box to say Data is changed do u wanted to save the data ,if yes save the data and move to the next record ,if no dont save it and move to the next record <BR><BR>I am able to display the message using javascript and display but the problem is I am not able to capture the ok and cancel button because the message displays after when the page is loaded <BR><BR>Any help would be god send <BR><BR>Thanks