Redirecting from one page to another will get postback flicker. If use the following code it will not get flicker.
<script type=”text/javascript”>
function DoAsyncRequest(){
ajaxObj.Open(
var ajaxObj = new ActiveXObject(“Microsoft.XMLHTTP”); “POST”, “http://localhost:5924/Charts/default.aspx”, false); //ajaxObj.Open(“POST”, “http://www.microsoft.com”, false);
ajaxObj.SetRequestHeader(
ajaxObj.Send();
{
document.write(ajaxObj.responseText);
}
}
“Content-Type”, “application/x-www-form-urlencoded”); if (ajaxObj.status == 200)
</
script>
// Code behind
Button2.OnClientClick =
“javascript:DoAsyncRequest();return false;”;
Advertisement