Archive for October, 2009

Redirect page with out flickering in donnet

October 29, 2009
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;”;