Set the update panel mode always and if you are using any javascript or jquery to modify css style then put that javascript or jquery inside this function
function pageLoad()
{
$(document).ready(function(){
});
function changeStyle(){
}
}
If this helpful for you then please select this as your answer and vote for this