Friends, I finally figured out a solution and wanted to update this thread (just in case if it is useful for someone).
To reitreate, I have a Ajaxpopup that doesn't work consisitently on IE9 browser, I tried upgrading the ajax controls, all fixes, properties that I can get on the net but nothing helped. One of our contract developer figured a solution using jquery and it perfectly worked. The same is added below.
In the code behind in button Click event (the button that shows the popup) addd the following,
ScriptManager.RegisterStartupScript(this, GetType(), "ShowMPE", "showMPE();", true);
In aspx page, add the following script,
<script type="text/javascript" language="javascript">
function showMPE()
{
$(window).bind("load", function() {
showMPEWorker();
});
}
function showMPEWorker()
{
try
{
var mpe = $find('<%=EndorsmentDetailsPopup.ClientID %>');
if(mpe==null)
{
return;
}
else
mpe.show();
}
catch(err)
{
alert(err.message);
}
}
/script>
If the above still doesn't work (it may in some cases), use a loop to call it with retry for 10 seconds as follows.
<script type="text/javascript">
var retryCount=0;
function showMPK()
{
if(retryCount<=10)
{
setTimeout(function(){showMPKWorker()},1000);
retryCount++;
}
else
{
alert("Unable to display popup dialog.");
}
}
function showMPKWorker()
{
try
{
var mpk = $find("<%=KeyDataPopup.BehaviorID %>");
if(mpk==null)
{
showMPK();
return;
}
else
mpk.show();
}
catch(err)
{
alert(err.message);
}
}
</script>