This is my jquery code
$.ajax({ url: \"PopUpProductDetails.aspx\", cache: false }).done(function (html) { $(\"#dialog\").append(htm
in case you need to clear the dialog first use .empty() which is faster than .html("")
see Jquery Difference .html("") vs .empty()