I have an aspx page with ajax panel on it and a button. this is my button :
<asp:Button ID="Button1" runat="server" OnClientClick="javascript:SetValues()" onclick="Button1_Click" Text="Button" />
when I click on the button I call the SetValues() function on the OnClientClick event. this function will change the position of the div on the screen. the Button1_Click method is running on the server and loading the div with data.
The problem is that the work that "SetValues()" did is canceled because the div after comming back from the server, is going back to it's original position on the screen.