2

I have a button in a webform which is shown as disabled in IE9 while when the same page is opened in IE10 it is shown as enabled.

What is the reason why this behaviour is observed?

BElow is the part of the aspx page.

<div class="controlBox">
              <asp:Button ID="btnYes" runat="server" OnClick="btnYes_Click" />
              <asp:Button ID="btnNo" runat="server" OnClick="btnNo_Click" />
        </div>

And this is how its visibility is controlled

document.getElementById("btnNo").style.visibility = "visible";  
document.getElementById("btnNo").disabled=false; 

Is it got something to do with how disabled property is handled by IE10.

ckv
  • 10,539
  • 20
  • 100
  • 144

1 Answers1

1

shouldn't that be

document.getElementById("btnNo").disabled=true;
Eonasdan
  • 7,563
  • 8
  • 55
  • 82
  • Its just a sample code i added. The disabled property is changed at runtime to false or true. Either way why is there a difference in the behaviour between IE9 and IE10. – ckv Dec 20 '12 at 14:16
  • If I remember I'll try it out at home, I've got Win8 there. I only have Win7 and IE9 here at work. Sorry I'm not more useful – Eonasdan Dec 20 '12 at 14:28